need to set default value for trcomment_format since it's not an actual field stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 12:12:20 +0200
branchstable
changeset 2725 6d0acd812d98
parent 2724 7966d87202d7
child 2726 03e7a6efd960
child 2727 5275d015834c
need to set default value for trcomment_format since it's not an actual field
web/views/workflow.py
--- a/web/views/workflow.py	Fri Aug 07 12:11:03 2009 +0200
+++ b/web/views/workflow.py	Fri Aug 07 12:12:20 2009 +0200
@@ -62,7 +62,8 @@
             'st1': _(state.name),
             'st2': _(dest.name)}
         self.w(u'<p>%s</p>\n' % msg)
-        self.w(form.form_render(state=dest.eid, trcomment=u''))
+        self.w(form.form_render(state=dest.eid, trcomment=u'',
+                                trcomment_format=self.req.property_value('ui.default-text-format')))
 
     def redirectpath(self, entity):
         return entity.rest_path()