Commit 8e0df9f8 authored by Romain Courteaud's avatar Romain Courteaud

Fix typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16792 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9991a32b
......@@ -207,7 +207,7 @@ def MultiSelectionValidator_validate(self, field, key, REQUEST):
raise KeyError, 'Field %s is not present in request object (marker field default_%s not found).' % (repr(field.id), key)
values = REQUEST.get(key, [])
# NOTE: a hack to deal with single item selections
if not isintance(values, list):
if not isinstance(values, list):
# put whatever we got in a list
values = [values]
# if we selected nothing and entry is required, give error, otherwise
......
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