Merge pull request #31378 from cogk/fix-workflow-render-template-context-should-be-dict

fix(workflow_action): Pass context as dict to render template
This commit is contained in:
Ejaaz Khan 2025-02-21 21:35:17 +05:30 committed by GitHub
commit 4dca5185cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -476,6 +476,9 @@ def get_email_template_from_workflow(doc):
if not template_name:
return
if isinstance(doc, Document):
doc = doc.as_dict()
return get_email_template(template_name, doc)