Commit ccf50bae authored by Romain Courteaud's avatar Romain Courteaud

Remove unreferenced mapping variables.

Call workflow transition after editing the object (because workflow could remove write permission on object)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21471 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f24647ef
......@@ -100,14 +100,14 @@ if not single_event:\n
event.setDestinationValue(user_person)\n
event.receive()\n
else:\n
event.plan()\n
event.setDestinationValue(person)\n
event.setSourceValue(user_person)\n
event.plan()\n
else:\n
if direction == \'incoming\' and len(person_list) > 1:\n
# This case is not possible\n
portal_status_message = translateString("The Single Event option can only be used with outgoing messages",\n
mapping = dict(portal_type = portal_type, count=count))\n
portal_status_message = translateString(\n
"The Single Event option can only be used with outgoing messages")\n
return context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_status_message, selection_name=selection_name), **kw)\n
# Proceed to event creation\n
event = module.newContent(portal_type=portal_type, \n
......@@ -115,9 +115,9 @@ else:\n
title=title, \n
follow_up=follow_up,\n
text_content=text_content) # text_format is set by Event_init\n
event.plan()\n
event.setDestinationValueList(person_list)\n
event.setSourceValue(user_person)\n
event.plan()\n
count = 1\n
\n
portal_status_message = translateString("Created and associated ${count} new Events to the selected Ticket.", \n
......@@ -191,9 +191,9 @@ context.Base_redirect(form_id, keep_items = dict(portal_status_message=portal_st
<string>event</string>
<string>_inplacevar_</string>
<string>len</string>
<string>dict</string>
<string>portal_status_message</string>
<string>_apply_</string>
<string>dict</string>
</tuple>
</value>
</item>
......
261
\ No newline at end of file
262
\ 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