Commit e32deab9 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_web_renderjs_ui: Fix execDisplayERP5ActionCommand of erp5_router

so that options are kept
parent bddcb668
......@@ -382,7 +382,7 @@
function execDisplayERP5ActionCommand(gadget, options) {
return gadget.jio_getAttachment(options.jio_key, 'links')
.push(function (document_view) {
var action, action_data, action_url, i, j;
var action, action_data, action_url, i, j, new_options;
for (i = 0; i < Object.keys(document_view._links).length; i = i + 1) {
action = Object.keys(document_view._links)[i];
......@@ -393,12 +393,14 @@
for (j = 0; j < document_view._links[action].length; j = j + 1) {
action_data = document_view._links[action][j];
if (action_data.name === options.page) {
new_options = {
jio_key: options.jio_key,
view: action_data.href
};
copyStickyParameterDict(options, new_options);
action_url = getDisplayUrlFor(
options.jio_key,
{
jio_key: options.jio_key,
view: action_data.href
}
new_options
);
return synchronousChangeState(action_url);
}
......
......@@ -218,7 +218,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>superGeorge</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>971.58160.33555.10956</string> </value>
<value> <string>972.46882.63089.27869</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>1543249005.07</float>
<float>1546418134.48</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