diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py index aa60e33b8a3436630c3ff97aa0279d02e8831ed5..a4d40c20fbd9f7d6eaefd68da030f534ff05a970 100644 --- a/product/ERP5Form/ListBox.py +++ b/product/ERP5Form/ListBox.py @@ -460,8 +460,10 @@ class ListBoxRenderer: def getContext(self): """Return the context of rendering this ListBox. """ - here = self.request.get('here') - return here is not None and here or self.getForm().aq_parent + value = self.request.get('here') + if value is None: + value = self.getForm().aq_parent + return value getContext = VolatileCachingMethod(getContext)