Commit 70bb96f6 authored by Romain Courteaud's avatar Romain Courteaud

Fix RelationField bug.

It does not raise a error anymore when nothing is selected in the dialog.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6a3ca691
......@@ -122,8 +122,8 @@ if dialog_method == \'Base_editRelation\':\n
field_id=request_form[\'field_id\'],\n
selection_name=request_form[\'selection_name\'],\n
selection_index=request_form[\'selection_index\'],\n
uids=request_form[\'uids\'],\n
listbox_uid=request_form[\'listbox_uid\'],\n
uids=request_form.get(\'uids\', ()),\n
listbox_uid=request_form.get(\'listbox_uid\', None),\n
form_pickle=request_form[\'form_pickle\'],\n
form_signature=request_form[\'form_signature\'])\n
# Exception for create relation\n
......@@ -338,8 +338,8 @@ return context.REQUEST.RESPONSE.redirect(redirect_url)\n
<string>_getitem_</string>
<string>value</string>
<string>getattr</string>
<string>_apply_</string>
<string>None</string>
<string>_apply_</string>
<string>form_context</string>
<string>form</string>
<string>validation_errors</string>
......
......@@ -128,8 +128,8 @@ if dialog_method == \'Base_editRelation\':\n
field_id=request_form[\'field_id\'],\n
selection_name=request_form[\'selection_name\'],\n
selection_index=request_form[\'selection_index\'],\n
uids=request_form[\'uids\'],\n
listbox_uid=request_form[\'listbox_uid\'],\n
uids=request_form.get(\'uids\', ()),\n
listbox_uid=request_form.get(\'listbox_uid\', None),\n
form_pickle=request_form[\'form_pickle\'],\n
form_signature=request_form[\'form_signature\'])\n
# Exception for create relation\n
......@@ -339,8 +339,8 @@ return context.REQUEST.RESPONSE.redirect(redirect_url)\n
<string>_getitem_</string>
<string>value</string>
<string>getattr</string>
<string>_apply_</string>
<string>None</string>
<string>_apply_</string>
<string>form_context</string>
<string>form</string>
<string>validation_errors</string>
......
248
\ No newline at end of file
251
\ 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