From dd88bedba51a805d8989f6d8aa58adf7ffc3cdba Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 25 Aug 2004 13:53:58 +0000 Subject: [PATCH] Use &reset=1 instead of ?reset=1 for list_action if list_action already contains ?. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1427 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ListBox.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index adddb1295b..db6eb4b294 100755 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -454,7 +454,11 @@ class ListBoxWidget(Widget.Widget): current_selection_name = REQUEST.get('selection_name','default') current_selection_index = REQUEST.get('selection_index', 0) report_depth = REQUEST.get('report_depth', None) - list_action = here.absolute_url() + '/' + field.get_value('list_action') + '?reset=1' + list_action = here.absolute_url() + '/' + field.get_value('list_action') + if list_action.find('?') < 0: + list_action += '?reset=1' + else: + list_action += '&reset=1' object_list = [] translate = portal_object.translation_service.translate -- 2.30.9