Commit ae3bfa7b authored by Vincent Pelletier's avatar Vincent Pelletier

Fix Base_callDialogMethod failing on selection_name gathering from the...

Fix Base_callDialogMethod failing on selection_name gathering from the parameters. If selection_name is not present, then there is no selection to update, period.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fea0ff01
......@@ -215,7 +215,10 @@ if dialog_category == "object_search" :\n
\n
# if we have checked line in listbox, modify the selection\n
listbox_uid = kw.get(\'listbox_uid\', None)\n
if listbox_uid is not None:\n
# In some cases, the listbox exists, is editable, but the selection name\n
# has no meaning, for example fast input dialogs.\n
# In such cases, we must not try to update a non-existing selection.\n
if listbox_uid is not None and kw.has_key(\'selection_name\'):\n
uids = kw.get(\'uids\')\n
selected_uids = context.portal_selections.updateSelectionCheckedUidList(\n
kw[\'selection_name\'],\n
......
111
\ No newline at end of file
112
\ 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