Commit 09df9d9f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

no need to call edit in listbox item if no column is editable.

parent 1cdf4164
...@@ -121,6 +121,7 @@ def editListBox(listbox_field, listbox):\n ...@@ -121,6 +121,7 @@ def editListBox(listbox_field, listbox):\n
for key, value in cleaned_v.items():\n for key, value in cleaned_v.items():\n
if value == \'\':\n if value == \'\':\n
cleaned_v[key] = None\n cleaned_v[key] = None\n
if cleaned_v:\n
if listbox_edit is None:\n if listbox_edit is None:\n
context.restrictedTraverse(url).edit(edit_order=edit_order, **cleaned_v)\n context.restrictedTraverse(url).edit(edit_order=edit_order, **cleaned_v)\n
else:\n else:\n
......
41052 41053
\ 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