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,10 +121,11 @@ def editListBox(listbox_field, listbox):\n ...@@ -121,10 +121,11 @@ 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 listbox_edit is None:\n if cleaned_v:\n
context.restrictedTraverse(url).edit(edit_order=edit_order, **cleaned_v)\n if listbox_edit is None:\n
else:\n context.restrictedTraverse(url).edit(edit_order=edit_order, **cleaned_v)\n
listbox_edit(url, edit_order, cleaned_v)\n else:\n
listbox_edit(url, edit_order, cleaned_v)\n
\n \n
def editMatrixBox(matrixbox_field, matrixbox):\n def editMatrixBox(matrixbox_field, matrixbox):\n
""" Function called to edit a Matrix box\n """ Function called to edit a Matrix box\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