Commit 479893c1 authored by Jérome Perrin's avatar Jérome Perrin

Base_edit: do not traverse to edited object when edit_listbox function is passed

parent 028de06a
...@@ -127,9 +127,9 @@ def editListBox(listbox_field, listbox):\n ...@@ -127,9 +127,9 @@ def editListBox(listbox_field, listbox):\n
value = None\n value = None\n
cleaned_v[key] = value\n cleaned_v[key] = value\n
\n \n
obj = context.restrictedTraverse(url)\n
if cleaned_v:\n if cleaned_v:\n
if listbox_edit is None:\n if listbox_edit is None:\n
obj = context.restrictedTraverse(url)\n
obj.edit(edit_order=edit_order, **cleaned_v)\n obj.edit(edit_order=edit_order, **cleaned_v)\n
else:\n else:\n
listbox_edit(url, edit_order, cleaned_v)\n listbox_edit(url, edit_order, cleaned_v)\n
......
41160 41161
\ No newline at end of file \ No newline at end of file
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