From 15dcb2127354ed277bb9cd8c2c327ee7e2d2905e Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Thu, 10 Feb 2005 17:05:52 +0000
Subject: [PATCH] Bug fix.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2457 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/FormulatorPatch.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py
index 2ade40c3d7..5b886cd295 100755
--- a/product/ERP5Form/FormulatorPatch.py
+++ b/product/ERP5Form/FormulatorPatch.py
@@ -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]
-- 
2.30.9