Commit d30a3fb9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Convert lists to tuples for hashing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1367 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f513e0ff
...@@ -455,7 +455,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): ...@@ -455,7 +455,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST):
css_class, css_class,
extra_item) extra_item)
# XXX -yo # XXX -yo
selected_found[value] = 1 selected_found[tuple(value)] = 1
else: else:
rendered_item = self.render_item(item_text, rendered_item = self.render_item(item_text,
item_value, item_value,
...@@ -467,7 +467,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): ...@@ -467,7 +467,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST):
# XXX We want to make sure that we always have the current value in items. -yo # XXX We want to make sure that we always have the current value in items. -yo
for v in value: for v in value:
if not selected_found[v] and v: if not selected_found[tuple(v)] and v:
rendered_item = self.render_selected_item('??? (%s)' % v, rendered_item = self.render_selected_item('??? (%s)' % v,
v, v,
key, key,
......
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