Commit ab37325c authored by Yusei Tahara's avatar Yusei Tahara

Don't create respond event if portal type is not specified.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21227 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c5ca01c
No related merge requests found
......@@ -74,6 +74,11 @@ event = state_change[\'object\']\n
portal_type = portal_workflow.getInfoFor(event,\n
\'respond_event_portal_type\',\n
wf_id=\'event_workflow\')\n
\n
# Pass Mark Responded transition.\n
if portal_type is None:\n
return\n
\n
title = portal_workflow.getInfoFor(event,\n
\'respond_event_title\',\n
wf_id=\'event_workflow\')\n
......@@ -140,6 +145,7 @@ event.Event_createRespondEvent(portal_type, title, resource, text_content)\n
<string>_getitem_</string>
<string>event</string>
<string>portal_type</string>
<string>None</string>
<string>title</string>
<string>resource</string>
<string>text_content</string>
......
253
\ No newline at end of file
254
\ 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