This commit is contained in:
James Brooks
2018-01-21 22:03:15 +00:00
parent 14366df3c4
commit 5b1d9ef0f6
2 changed files with 21 additions and 2 deletions

View File

@@ -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')