diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index 26120da8e639ccf61b8f3e7d50730d5a3910cfca..a71b586d8c3f9222920aae4d31085e5073c38749 100755 --- a/product/ERP5Form/FormulatorPatch.py +++ b/product/ERP5Form/FormulatorPatch.py @@ -151,7 +151,7 @@ def SelectionValidator_validate(self, field, key, REQUEST): return value # get the text and the value from the list of items - for item in field.get_value('items', cell=getattr(REQUEST,'cell',None)) + [field.get_value('default', cell=getattr(REQUEST,'cell',None))]: + for item in list(field.get_value('items', cell=getattr(REQUEST,'cell',None))) + [field.get_value('default', cell=getattr(REQUEST,'cell',None))]: try: item_text, item_value = item except ValueError: