Commit a76b5815 authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_core] Add paths of ERP5 objects from selction in the keep items list

This will insure that the URL created for diff by `Base_redirect` will have the paramters
`your_first_path` and `your_second_path` in it, thus making it unique and hence
sharable. Before, we only used to have the name of selection in the URL which
returned different result for different users.
parent 44d0dbe3
......@@ -22,4 +22,8 @@ if list_selection_name is not None:
# Keep the `list_selection_name` in keep_items as we will be needing it
# while displaying the paths of the selected objects.
return context.Base_redirect('ERP5Site_viewDiffTwoObjectDialog',
keep_items={'list_selection_name': list_selection_name})
keep_items={
'list_selection_name': list_selection_name,
'your_first_path': selected_obj_list[0].getRelativeUrl(),
'your_second_path': selected_obj_list[1].getRelativeUrl()
})
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