web/uihelper.py
changeset 8033 2a9764674a74
parent 8030 552d85fcb587
child 8238 087bb529035c
--- a/web/uihelper.py	Fri Oct 28 10:32:48 2011 +0200
+++ b/web/uihelper.py	Fri Oct 28 10:34:12 2011 +0200
@@ -147,8 +147,8 @@
   from cubicweb.web import uihelper
   uihelper.hide_fields('CWUser', ('login', ('use_email', 'subject')), formtype='inlined')
     """
-    for field in fields:
-        hide_field(etype, field, formtype=formtype)
+    for attr in attrs:
+        hide_field(etype, attr, formtype=formtype)
 
 
 def set_field_kwargs(etype, attr, **kwargs):