From 932f6194531bbf01559dc4daca142cf901bed2d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Tue, 26 Jan 2016 04:10:22 +0100 Subject: [PATCH] crm: do not restrict notification messages to response in Ticket_viewNewEventDialog This dialog can be used outside of the "creating a response context", so filtering the notification messages to only the response one is not always good. Introduce a request key "notification_message_response_only" that will apply the filter if true. --- .../Ticket_viewNewEventDialog/your_notification_message.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_viewNewEventDialog/your_notification_message.xml b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_viewNewEventDialog/your_notification_message.xml index 660c30d7d2..88963f960c 100644 --- a/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_viewNewEventDialog/your_notification_message.xml +++ b/bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_viewNewEventDialog/your_notification_message.xml @@ -129,7 +129,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: context.Event_getNotificationMessageItemList(response_only=True)</string> </value> + <value> <string>python: context.Event_getNotificationMessageItemList(response_only=request.get(\'notification_message_response_only\', False))</string> </value> </item> </dictionary> </pickle> -- 2.30.9