Commit 173c09c6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ListBox: Fix 6fd21826 backward-compatibility code (#20161014-741678).

Before fixing this bug, 'listbox_previousPage:method' input button was
submitted but with no value (''). However, this was not handled by the
backward-compatibility code and thus next/previous page buttons would
not work properly if erp5_xhtml_style is not updated.
parent da78761d
...@@ -1812,9 +1812,8 @@ for property_id in candidate_method_id_list: ...@@ -1812,9 +1812,8 @@ for property_id in candidate_method_id_list:
""" """
portal_selection = getToolByName(self, 'portal_selections') portal_selection = getToolByName(self, 'portal_selections')
request = self.REQUEST request = self.REQUEST
try: listbox_id = request.form.get('listbox_%s' % wrapper_property_id, None)
listbox_id = request.form['listbox_%s' % wrapper_property_id] if not listbox_id:
except KeyError:
# Backward-compatibility: Should be removed as soon as # Backward-compatibility: Should be removed as soon as
# createFolderMixInPageSelectionMethod has been removed # createFolderMixInPageSelectionMethod has been removed
warnings.warn( warnings.warn(
......
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