From 108d2994a6dbde863d40806668472872977c07ec Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 31 Jan 2008 09:06:01 +0000 Subject: [PATCH] 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 --- product/ERP5Form/SelectionTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index 20744337bc..4bd9cbefa1 100644 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -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) -- 2.30.9