Commit c5bd64af authored by Romain Courteaud's avatar Romain Courteaud

[erp5_crm] Make create_response usable in ERP5JS

parent 0b48b887
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_action</string>
<string>action_type/object_jio_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
<value> <string>object_jio_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
......@@ -20,9 +20,9 @@ if response_event_notification_message:
# XXX this relies on formulator internals, we force the variables in request and
# re-render the form.
request = container.REQUEST
request.set('your_response_event_notification_message', '')
request.set('your_response_event_title', temp_event.getTitle())
request.set('your_response_event_text_content', temp_event.getTextContent())
request.set('your_response_event_resource', temp_event.getResource())
request.form['your_response_event_notification_message'] = ''
request.form['your_response_event_title'] = temp_event.getTitle()
request.form['your_response_event_text_content'] = temp_event.getTextContent()
request.form['your_response_event_resource'] = temp_event.getResource()
return context.Event_viewCreateResponseDialog()
return context.Base_renderForm('Event_viewCreateResponseDialog')
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