From acf2e5ed466f6a7db438d21b32d9c81ab14d0700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 29 Oct 2014 12:45:18 +0100 Subject: [PATCH] Listbox: Cleanup REQUEST.cell ( same as 6a83d60 ) --- product/ERP5Form/ListBox.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index dac3d3dc70..1e18e55afd 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -2533,6 +2533,10 @@ class ListBoxHTMLRendererLine(ListBoxRendererLine): html = u'<a href="%s">%s</a>' % (url, html) html_list.append((html, original_value, error, editable_field, url)) + + # XXX Does not leave garbage in REQUEST['cell'], because some other + # fields also use that key... + request.other.pop('cell', None) return html_list allow_class(ListBoxHTMLRendererLine) @@ -2918,6 +2922,10 @@ class ListBoxValidator(Validator.Validator): #LOG("ListBox FormValidationError",0,str(error_result)) #LOG("ListBox FormValidationError",0,str(errors)) raise FormValidationError(errors, error_result) + + # XXX Does not leave garbage in REQUEST['cell'], because some other + # fields also use that key... + REQUEST.other.pop('cell', None) return result ListBoxValidatorInstance = ListBoxValidator() -- 2.30.9