Commit c8d937c0 authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: support more parameters in the erp5 router actions

parent fcdc01fc
...@@ -410,10 +410,11 @@ ...@@ -410,10 +410,11 @@
for (j = 0; j < document_view._links[action].length; j = j + 1) { for (j = 0; j < document_view._links[action].length; j = j + 1) {
action_data = document_view._links[action][j]; action_data = document_view._links[action][j];
if (action_data.name === next_options.page) { if (action_data.name === next_options.page) {
new_options = { // copy (or reuse) to propagate other parameters like editable
jio_key: next_options.jio_key, new_options = next_options;
view: action_data.href // XXX page options is conflicting with usual usage
}; delete new_options.page;
new_options.view = action_data.href;
copyStickyParameterDict(previous_options, new_options); copyStickyParameterDict(previous_options, new_options);
if (command === 0) { if (command === 0) {
return execDisplayCommand(gadget, new_options); return execDisplayCommand(gadget, new_options);
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>990.5085.9603.7731</string> </value> <value> <string>990.5086.43949.8362</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1613566000.18</float> <float>1614089291.25</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