We're updating the issue view to help you get more done. 

Notifications: difference in code sending data to createNotification method of the notification service causing loss of values

Description

Noticed something whilst debugging an issue re: data not getting passed to email templates when using the Notification service.

Anyway here's the gist of it...

NotificationService.cfc has two calls to the sendGlobalNotificationEmail() method in the function createNotification() and they differ slightly in the way they pass their data.

If it's saving the notification to the CMS it does this

1 2 3 4 5 6 7 var args = Duplicate( arguments ); ... sendGlobalNotificationEmail( recipient = topicConfig.send_to_email_address , topic = args.topic , data = args );

Otherwise it does:

1 2 3 4 5 sendGlobalNotificationEmail( recipient = topicConfig.send_to_email_address , topic = arguments.topic , data = { data=arguments.data } );

Not sure about the line with {{, data = { data=arguments.data }}

So the task is to ensure the data is getting passed to the sendGlobalNotificationEmail() correctly

Environment

Status

Assignee

Niall

Reporter

Dominic Watson

Accepted

Yes

Fix versions

Priority

Medium