Commit 108d2994 authored by Romain Courteaud's avatar Romain Courteaud

Check that request is not None before using it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18935 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2336e128
......@@ -475,12 +475,12 @@ class SelectionTool( BaseTool, UniqueObject, SimpleItem ):
new_sort_on = [(sort_on,'ascending')]
selection.edit(sort_on=new_sort_on)
if REQUEST is not None:
if REQUEST.form.has_key('listbox_uid') and \
REQUEST.form.has_key('uids'):
self.uncheckAll(selection_name, REQUEST.get('listbox_uid'))
self.checkAll(selection_name, REQUEST.get('uids'))
if REQUEST is not None:
return self._redirectToOriginalForm(REQUEST=REQUEST, form_id=form_id,
query_string=query_string, no_reset=True)
......
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