Commit a8112b94 authored by Aurel's avatar Aurel

explicitly set items to list for validation of selection


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4480 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64001e98
......@@ -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:
......
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