[forms] fix bug in linkto refactoring (misordered arguments)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 10 Oct 2011 16:15:55 +0200
changeset 7929 900f1627b171
parent 7920 5146c63e8e34
child 7931 60068dc83457
[forms] fix bug in linkto refactoring (misordered arguments)
web/views/forms.py
--- a/web/views/forms.py	Fri Oct 07 11:59:20 2011 +0200
+++ b/web/views/forms.py	Mon Oct 10 16:15:55 2011 +0200
@@ -399,7 +399,7 @@
                 self.field_by_name(rtype, role)
             except form.FieldNotFound:
                 for eid in eids:
-                    self.add_hidden('__linkto', '%s:%s:%s' % (rtype, role, eid))
+                    self.add_hidden('__linkto', '%s:%s:%s' % (rtype, eid, role))
 
     def render(self, *args, **kwargs):
         self.add_linkto_hidden()