diff --git a/app/Http/Controllers/Dashboard/IncidentController.php b/app/Http/Controllers/Dashboard/IncidentController.php index 865a8145..cc03457d 100644 --- a/app/Http/Controllers/Dashboard/IncidentController.php +++ b/app/Http/Controllers/Dashboard/IncidentController.php @@ -350,8 +350,8 @@ class IncidentController extends Controller ->withErrors($e->getMessageBag()); } - if ($incident->incident->component) { - $incident->incident->component->update(['status' => Binput::get('component_status')]); + if ($incident->component) { + $incident->component->update(['status' => Binput::get('component_status')]); } return cachet_redirect('dashboard.incidents') diff --git a/resources/views/dashboard/incidents/updates/edit.blade.php b/resources/views/dashboard/incidents/updates/edit.blade.php index 6832e223..5df75656 100644 --- a/resources/views/dashboard/incidents/updates/edit.blade.php +++ b/resources/views/dashboard/incidents/updates/edit.blade.php @@ -45,6 +45,25 @@ {{ trans('cachet.incidents.status')[4] }} + @if($incident->component) +
+
+
{{ $incident->component->name }}
+
+
+ @foreach(trans('cachet.components.status') as $statusID => $status) +
+ +
+ @endforeach +
+
+
+
+ @endif