Commit 8bc5b239 authored by Nicolas Delaby's avatar Nicolas Delaby

initialise workflow variable to True to send email

parent f67c2e14
......@@ -68,7 +68,8 @@ response = module.newContent(portal_type=response_event_portal_type,\n
\n
message = portal.Base_translateString(\'Response Created.\')\n
if response_workflow_action == \'send\':\n
response.start()\n
# use doActionFor to initialise workflow variable\n
portal.portal_workflow.doActionFor(response, \'start_action\', send_mail=True)\n
return context.Base_redirect(form_id, keep_items={\'portal_status_message\': message})\n
elif response_workflow_action == \'plan\':\n
response.plan()\n
......
561
\ No newline at end of file
562
\ No newline at end of file
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