Commit 4d541824 authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

override form_build_context instead of form_render so we get sure to call...

override form_build_context instead of form_render so we get sure to call form_add_entity_hiddens even on subforms

--HG--
branch : tls-sprint
parent 8c3336c5ddba
......@@ -358,9 +358,9 @@ class EntityFieldsForm(FieldsForm):
msg = '%s %s' % (msg, self.req._('and linked'))
self.form_add_hidden('__message', msg)
def form_render(self, **values):
def form_build_context(self, values):
self.form_add_entity_hiddens(self.edited_entity.e_schema)
return super(EntityFieldsForm, self).form_render(**values)
return super(EntityFieldsForm, self).form_build_context(values)
def form_add_entity_hiddens(self, eschema):
for field in self.fields[:]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment