From 20828a0600de81f17fecdd9381fb3b087353542b Mon Sep 17 00:00:00 2001 From: tejaswivinod Date: Wed, 6 Feb 2019 10:22:11 -0500 Subject: [PATCH] Substitute :name by incident name on slack title Slack title for created incident has ':name', which is being substituted by incident name. --- app/Notifications/Incident/NewIncidentNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Notifications/Incident/NewIncidentNotification.php b/app/Notifications/Incident/NewIncidentNotification.php index 8ad938bb..f816fa6f 100644 --- a/app/Notifications/Incident/NewIncidentNotification.php +++ b/app/Notifications/Incident/NewIncidentNotification.php @@ -128,7 +128,7 @@ class NewIncidentNotification extends Notification ->$status() ->content($content) ->attachment(function ($attachment) use ($notifiable) { - $attachment->title(trans('notifications.incident.new.slack.title', [$this->incident->name])) + $attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name])) ->timestamp($this->incident->getWrappedObject()->occurred_at) ->fields(array_filter([ 'ID' => "#{$this->incident->id}",