Commit 2a4569af authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Reset the sort parameter when accessing a worklist

parent 64b98991
...@@ -71,6 +71,9 @@ ...@@ -71,6 +71,9 @@
page: 'search' page: 'search'
}; };
} }
// HARDCODED: most erp5's module listboxes are named 'listbox'
// Drop the sort parameter, to speed up the calculation
display_options['field_listbox_sort_list:json'] = undefined;
url_for_parameter_list.push( url_for_parameter_list.push(
{command: 'display_stored_state', options: display_options} {command: 'display_stored_state', options: display_options}
); );
......
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>968.45482.36373.28842</string> </value> <value> <string>976.13725.50121.7014</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1536227336.81</float> <float>1559812175.93</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
return next_options; return next_options;
} }
function execDisplayStoredStateCommand(gadget, next_options) { function execDisplayStoredStateCommand(gadget, next_options, drop_options) {
// console.warn(command_options); // console.warn(command_options);
var jio_key = next_options.jio_key, var jio_key = next_options.jio_key,
storage_key = jio_key, storage_key = jio_key,
...@@ -359,7 +359,7 @@ ...@@ -359,7 +359,7 @@
if (storage_key) { if (storage_key) {
queue = gadget.props.jio_state_gadget.get(storage_key) queue = gadget.props.jio_state_gadget.get(storage_key)
.push(function (options) { .push(function (options) {
calculateChangeOptions(options, next_options); calculateChangeOptions(options, next_options, drop_options);
}, function (error) { }, function (error) {
if ((error instanceof jIO.util.jIOError) && if ((error instanceof jIO.util.jIOError) &&
(error.status_code === 404)) { (error.status_code === 404)) {
...@@ -883,7 +883,7 @@ ...@@ -883,7 +883,7 @@
return execKeepHistoryAndCancelDialogCommand(gadget, previous_options); return execKeepHistoryAndCancelDialogCommand(gadget, previous_options);
} }
if (command_options.path === COMMAND_DISPLAY_STORED_STATE) { if (command_options.path === COMMAND_DISPLAY_STORED_STATE) {
return execDisplayStoredStateCommand(gadget, next_options); return execDisplayStoredStateCommand(gadget, next_options, drop_options);
} }
if (command_options.path === COMMAND_INDEX_STATE) { if (command_options.path === COMMAND_INDEX_STATE) {
return execIndexCommand(gadget, previous_options, next_options); return execIndexCommand(gadget, previous_options, next_options);
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>972.58906.44395.12356</string> </value> <value> <string>976.13727.43454.8226</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1547217993.21</float> <float>1559811855.94</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment