# HG changeset patch # User Sylvain Thénault # Date 1249639970 -7200 # Node ID 03e7a6efd960b1cf82345b3de4c6bfa919a4a409 # Parent e39982748753371131ff8d467485741c71e23fae# Parent 6d0acd812d986f2dd11a1f3c3a438ce4e4f8caf3 backport stable branch diff -r e39982748753 -r 03e7a6efd960 web/formfields.py --- a/web/formfields.py Fri Aug 07 10:43:34 2009 +0200 +++ b/web/formfields.py Fri Aug 07 12:12:50 2009 +0200 @@ -257,7 +257,7 @@ try: return req.data[self] except KeyError: - fkwargs = {} + fkwargs = {'eidparam': self.eidparam} if self.use_fckeditor(form): # if fckeditor is used and format field isn't explicitly # deactivated, we want an hidden field for the format @@ -292,7 +292,8 @@ format_field = self.get_format_field(form) if format_field: # XXX we want both fields to remain vertically aligned - format_field.widget.attrs['style'] = 'display: block' + if format_field.is_visible(): + format_field.widget.attrs['style'] = 'display: block' result = format_field.render(form, renderer) else: result = u'' diff -r e39982748753 -r 03e7a6efd960 web/views/workflow.py --- a/web/views/workflow.py Fri Aug 07 10:43:34 2009 +0200 +++ b/web/views/workflow.py Fri Aug 07 12:12:50 2009 +0200 @@ -62,7 +62,8 @@ 'st1': _(state.name), 'st2': _(dest.name)} self.w(u'

%s

\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()