Commit 2e90b286 authored by Sebastien Robin's avatar Sebastien Robin

do not del a key if the key is not there

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24803 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab937078
...@@ -348,6 +348,7 @@ class ReportSection: ...@@ -348,6 +348,7 @@ class ReportSection:
REQUEST = get_request() REQUEST = get_request()
for k,v in self.param_dict.items(): for k,v in self.param_dict.items():
if self.saved_request[k] is self._no_parameter_: if self.saved_request[k] is self._no_parameter_:
if REQUEST.form.has_key(k):
del REQUEST.form[k] del REQUEST.form[k]
else: else:
REQUEST.form[k] = self.saved_request[k] REQUEST.form[k] = self.saved_request[k]
......
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