Commit db2e0cb5 authored by Aurel's avatar Aurel

check REQUEST is not None


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18785 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2db0e92f
...@@ -431,10 +431,11 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ): ...@@ -431,10 +431,11 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
listbox_id, sort_on = REQUEST.form["setSelectionQuickSortOrder"].split(".", 1) listbox_id, sort_on = REQUEST.form["setSelectionQuickSortOrder"].split(".", 1)
if form_id is None: if form_id is None:
if REQUEST.form.has_key('dialog_id'): if REQUEST is not None:
form_id = REQUEST.form['dialog_id'] if REQUEST.form.has_key('dialog_id'):
else: form_id = REQUEST.form['dialog_id']
form_id = REQUEST.form['form_id'] else:
form_id = REQUEST.form['form_id']
if selection_name is None: if selection_name is None:
if REQUEST.form.has_key('selection_name'): if REQUEST.form.has_key('selection_name'):
selection_name = REQUEST.form['selection_name'] selection_name = REQUEST.form['selection_name']
......
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