not necessary here, else we see it in the generated input stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 May 2009 15:00:38 +0200
branchstable
changeset 1963 c97c03082de9
parent 1961 8b5009e27e2b
child 1964 b60719223965
not necessary here, else we see it in the generated input
web/formwidgets.py
--- a/web/formwidgets.py	Wed May 27 12:51:29 2009 +0200
+++ b/web/formwidgets.py	Wed May 27 15:00:38 2009 +0200
@@ -301,8 +301,6 @@
 
     def _render_attrs(self, form, field):
         name, values, attrs = super(AutoCompletionWidget, self)._render_attrs(form, field)
-        if not values[0]:
-            values = (INTERNAL_FIELD_VALUE,)
         init_ajax_attributes(attrs, self.wdgtype, self.loadtype)
         # XXX entity form specific
         attrs['cubicweb:dataurl'] = self._get_url(form.edited_entity, field)