Commit deaf7f1f authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: can not call pop directly on REQUEST.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5859 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3df49d68
......@@ -409,8 +409,10 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField
if value == '':
# Clean request if necessary
if REQUEST.has_key( relation_field_id):
REQUEST.pop(relation_field_id)
for subdict_name in ['form', 'other']:
subdict = getattr(REQUEST, subdict_name)
if subdict.has_key(relation_field_id):
subdict.pop(relation_field_id)
else:
# Got a true value
......
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