Commit c569ae9e authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: only store document state on the default view parameter

parent 5080e33c
......@@ -434,7 +434,9 @@
display_url = getDisplayUrlFor(jio_key, options);
if (storage_key) {
// Only keep state for the default view
// otherwise, user will never be able to reset it with the filter panel
if (storage_key && ((options.view === undefined) || (options.view === 'view'))) {
queue = gadget.props.jio_state_gadget.put(storage_key, dropStickyParameterEntry(options));
} else {
queue = new RSVP.Queue();
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>979.51895.64958.60108</string> </value>
<value> <string>981.1860.29146.64136</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1573725627.05</float>
<float>1578501476.12</float>
<string>UTC</string>
</tuple>
</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