[action] has_editable_relation first argument is once_is_enough flag, not an action name stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 13 Oct 2011 10:24:27 +0200
branchstable
changeset 7947 64719f6933d4
parent 7944 1faa8edb5ae3
child 7948 deb596dc343a
[action] has_editable_relation first argument is once_is_enough flag, not an action name
web/views/actions.py
--- a/web/views/actions.py	Thu Oct 13 09:44:14 2011 +0200
+++ b/web/views/actions.py	Thu Oct 13 10:24:27 2011 +0200
@@ -147,7 +147,7 @@
 class ModifyAction(action.Action):
     __regid__ = 'edit'
     __select__ = (action.Action.__select__
-                  & one_line_rset() & has_editable_relation('add'))
+                  & one_line_rset() & has_editable_relation())
 
     title = _('modify')
     category = 'mainactions'