merge stable cubicweb-version-3.5.10
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Dec 2009 15:49:08 +0100
branchstable
changeset 3995 9b52725d8c53
parent 3994 dfa5138cc938 (current diff)
parent 3993 8cf7c767b134 (diff)
child 3996 dfe2f245248c
child 3998 94cc7cad3d2d
merge
--- a/web/formwidgets.py	Thu Dec 03 15:48:52 2009 +0100
+++ b/web/formwidgets.py	Thu Dec 03 15:49:08 2009 +0100
@@ -394,6 +394,8 @@
         init_ajax_attributes(attrs, self.wdgtype, self.loadtype)
         # XXX entity form specific
         attrs['cubicweb:dataurl'] = self._get_url(form.edited_entity, field)
+        if not values:
+            values = ('',)
         return name, values, attrs
 
     def _get_url(self, entity, field):