Commit 27231e59 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add follow_up parameter on Base_addEvent script to be possible pass the follow...

Add follow_up parameter on Base_addEvent script to be possible pass the follow up when the context is a person or organisation
parent 5a56cd7c
......@@ -75,7 +75,6 @@ if logged_in_user_value is not None:\n
\n
person_relative_url = None\n
organisation_relative_url = None\n
follow_up = None\n
if context.getPortalType() in portal_entity_type_list:\n
if context.getPortalType() == \'Person\':\n
person_relative_url = context.getRelativeUrl()\n
......@@ -140,7 +139,7 @@ event.Base_redirect(keep_items={\'portal_status_message\': message})\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>title, direction, portal_type, resource, text_content=None, notification_message=None, batch_mode=False, keep_draft=False, **kw</string> </value>
<value> <string>title, direction, portal_type, resource, text_content=None, notification_message=None, batch_mode=False, keep_draft=False, follow_up=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -70,10 +70,9 @@ event = context.Base_addEvent(title=\'\',\n
resource=notification_message.getSpecialise(),\n
notification_message=resource_reference,\n
keep_draft=keep_draft,\n
follow_up=follow_up,\n
batch_mode=True)\n
\n
event.setFollowUp(follow_up)\n
\n
if event.getSource() is None:\n
event.setSource(source)\n
</string> </value>
......
628
\ No newline at end of file
629
\ 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