web/formwidgets.py
branchstable
changeset 4250 39adce674a09
parent 4212 ab6573088b4a
child 4252 6c4f109c2b03
--- a/web/formwidgets.py	Mon Jan 18 11:50:54 2010 +0100
+++ b/web/formwidgets.py	Mon Jan 18 15:58:06 2010 +0100
@@ -479,7 +479,7 @@
         elif self.onclick:
             attrs['onclick'] = self.onclick
         if self.name:
-            attrs['name'] = name
+            attrs['name'] = self.name
             if self.setdomid:
                 attrs['id'] = self.name
         if self.settabindex and not 'tabindex' in attrs: