Commit 15dcb212 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7bc5325
......@@ -500,6 +500,9 @@ SingleItemsWidget.render_items = SingleItemsWidget_render_items
from Products.Formulator.Widget import MultiItemsWidget
def MultiItemsWidget_render_items(self, field, key, value, REQUEST):
# list is needed, not a tuple
if type(value) is type(()):
value = list(value)
# need to deal with single item selects
if type(value) is not type([]):
value = [value]
......
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