From: Jordan Augé Date: Tue, 8 Jul 2014 12:26:03 +0000 (+0200) Subject: fixed issue with record state after update X-Git-Tag: myslice-1.1~34 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=efea2e5e9a6bcac4b5d5807f7c8bff4e46848bfa;p=myslice.git fixed issue with record state after update --- diff --git a/manifoldapi/static/js/manifold.js b/manifoldapi/static/js/manifold.js index 2d94a3aa..3aba9c15 100644 --- a/manifoldapi/static/js/manifold.js +++ b/manifoldapi/static/js/manifold.js @@ -1294,7 +1294,7 @@ var manifold = { new_state = ($.inArray(key, result_keys) == -1) ? STATE_SET_IN_FAILURE : STATE_SET_IN_SUCCESS; // Update record state for children queries - manifold.query_store.set_record_state(cur_query_uuid, field, STATE_SET, new_state); + manifold.query_store.set_record_state(cur_query_uuid, key, STATE_SET, new_state); data = { state: STATE_SET, key : field, op : new_state, value: key } manifold.raise_record_event(query_uuid, FIELD_STATE_CHANGED, data); @@ -1303,7 +1303,7 @@ var manifold = { new_state = ($.inArray(key, result_keys) == -1) ? STATE_SET_OUT_SUCCESS : STATE_SET_OUT_FAILURE; // Update record state for children queries - manifold.query_store.set_record_state(cur_query_uuid, field, STATE_SET, new_state); + manifold.query_store.set_record_state(cur_query_uuid, key, STATE_SET, new_state); data = { state: STATE_SET, key : field, op : new_state, value: key } manifold.raise_record_event(query_uuid, FIELD_STATE_CHANGED, data);