From a76b5815501a42561e13e324e13432be74ecf318 Mon Sep 17 00:00:00 2001 From: Ayush <ayush.tiwari@nexedi.com> Date: Tue, 16 Oct 2018 18:03:15 +0200 Subject: [PATCH] [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. --- .../erp5_diff/Base_viewDiffDialogForModuleSelection.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_diff/Base_viewDiffDialogForModuleSelection.py b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_diff/Base_viewDiffDialogForModuleSelection.py index 928b11382e..b55b9eab0e 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_diff/Base_viewDiffDialogForModuleSelection.py +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_diff/Base_viewDiffDialogForModuleSelection.py @@ -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() + }) -- 2.30.9