# HG changeset patch # User Sylvain Thénault # Date 1253526105 -7200 # Node ID 3c035436ca65757aea27d2bbefb2cbd96ee64567 # Parent 8d831c02da9a647f196432a38a810a6f633e339f statuschange form view only works w/ one entity, fix selector accordingly diff -r 8d831c02da9a -r 3c035436ca65 web/views/workflow.py --- a/web/views/workflow.py Mon Sep 21 11:41:17 2009 +0200 +++ b/web/views/workflow.py Mon Sep 21 11:41:45 2009 +0200 @@ -52,7 +52,8 @@ class ChangeStateFormView(form.FormViewMixIn, view.EntityView): id = 'statuschange' title = _('status change') - __select__ = implements(IWorkflowable) & match_form_params('treid') + __select__ = (one_line_rset() & implements(IWorkflowable) + & match_form_params('treid')) def cell_call(self, row, col): entity = self.rset.get_entity(row, col)