Easily update component status when editing incident. Closes #721
This commit is contained in:
@@ -323,6 +323,13 @@ class IncidentController extends AbstractController
|
||||
->with('errors', $incident->getErrors());
|
||||
}
|
||||
|
||||
$componentStatus = array_pull($incidentData, 'component_status');
|
||||
if ($incident->component) {
|
||||
$incident->component->update([
|
||||
'status' => $componentStatus,
|
||||
]);
|
||||
}
|
||||
|
||||
segment_track('Dashboard', [
|
||||
'event' => 'Edited Incident',
|
||||
'success' => true,
|
||||
|
||||
Reference in New Issue
Block a user