Don't pass through the whole incident name, just the components

This commit is contained in:
James Brooks
2015-08-14 08:47:28 +01:00
parent 808bc5201d
commit 0bff2f9215
3 changed files with 4 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ class SendIncidentEmailNotificationHandler
$mail = [
'email' => $subscriber->email,
'subject' => 'New incident reported.',
'incident' => $event->incident,
'component_name' => $event->incident->component->name,
'status' => $data->humanStatus,
'htmlContent' => $data->formattedMessage,
'textContent' => $data->message,

View File

@@ -9,7 +9,7 @@
<p>
{!! $status !!}
@if($incident->component)
@if(isset($incident->component))
({{ $incident->component->name }})
@endif
</p>

View File

@@ -1,8 +1,8 @@
{!! trans('cachet.subscriber.email.incident.text', ['app_name' => Setting::get('app_name')]) !!}
{!! $status !!}
@if($incident->component)
({{ $incident->component->name }})
@if($component_name)
({{ $component_name }})
@endif
{!! $textContent !!}