Commit 3a08c758 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[erp5] Form/FormBox - call a method when you get it

Fixes broken test on master

/reviewed-on nexedi/erp5!374
parent 9d71c913
......@@ -141,7 +141,8 @@ class FormBoxEditor:
def edit(self, context):
if self.context_method_id:
context = getattr(context, self.context_method_id)
context = getattr(context, self.context_method_id)()
context.edit(**self.attr_dict)
for encapsulated_editor in self.editor_list:
encapsulated_editor.edit(context)
......
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