diff --git a/product/ERP5Form/Tool/SelectionTool.py b/product/ERP5Form/Tool/SelectionTool.py index e76542c3a7fcbab857b45853786a793a693d834c..e586ef4371b77c7a50530ee3c4fe2921b828cf3e 100644 --- a/product/ERP5Form/Tool/SelectionTool.py +++ b/product/ERP5Form/Tool/SelectionTool.py @@ -1826,9 +1826,8 @@ for property_id in candidate_method_id_list: """ portal_selection = getToolByName(self, 'portal_selections') request = self.REQUEST - try: - listbox_id = request.form['listbox_%s' % wrapper_property_id] - except KeyError: + listbox_id = request.form.get('listbox_%s' % wrapper_property_id, None) + if not listbox_id: # Backward-compatibility: Should be removed as soon as # createFolderMixInPageSelectionMethod has been removed warnings.warn(