Commit 701dc548 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Store navigation parameter when displaying the history page

parent 710bab7c
......@@ -570,7 +570,18 @@
})
);
}
} else if (command_options.args.page === 'history') {
}
if (command_options.args.page === undefined) {
return routeMethodLess(gadget);
}
command_options.args.jio_key = command_options.path || undefined;
// Store current options to handle navigation
gadget.props.options = JSON.parse(JSON.stringify(command_options.args));
if (command_options.args.page === 'history') {
// This is an adhoc route to handle local navigation history
return gadget.props.jio_navigation_gadget.allDocs({
sort_on: [['access_time', 'descending']]
......@@ -594,14 +605,6 @@
});
}
if (command_options.args.page === undefined) {
return routeMethodLess(gadget);
}
command_options.args.jio_key = command_options.path || undefined;
// Store current options to handle navigation
gadget.props.options = JSON.parse(JSON.stringify(command_options.args));
if (gadget.props.form_content) {
command_options.args.form_content = gadget.props.form_content;
......
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>956.24559.34655.7219</string> </value>
<value> <string>958.21184.3295.34167</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>1483374652.65</float>
<float>1490776558.07</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