Commit 424bda6e authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

erp5_json_form: Pass the JSON form object to the aftermethod script

parent 5ab072f5
...@@ -68,7 +68,7 @@ class JSONForm(JSONType, TextDocument): ...@@ -68,7 +68,7 @@ class JSONForm(JSONType, TextDocument):
else: else:
raise ValueError(json.dumps(validation_result)) raise ValueError(json.dumps(validation_result))
if self.getAfterMethodId(): if self.getAfterMethodId():
return getattr(getattr(self, 'aq_parent', None), self.getAfterMethodId())(json_data, self.getOutputJSONSchema()) return getattr(getattr(self, 'aq_parent', None), self.getAfterMethodId())(json_data, self)
return "Nothing to do" return "Nothing to do"
def validateJSON(self, json_data, list_error=False): def validateJSON(self, json_data, list_error=False):
......
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