[uihelper] fix bad variable renaming
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 28 Oct 2011 10:34:12 +0200
changeset 8033 2a9764674a74
parent 8032 bcb87336c7d2
child 8034 b07d61090706
[uihelper] fix bad variable renaming
web/uihelper.py
--- 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):