Commit dd88bedb authored by Yoshinori Okuji's avatar Yoshinori Okuji

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
parent bdfa8466
......@@ -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
......
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