Update actual_end_time when incident set to resolved
This commit is contained in:
@@ -62,6 +62,12 @@ if ($request->exists('do')) {
|
|||||||
$description = StatusBoard_Main::issetelse($_POST['description'], 'Sihnon_Exception_InvalidParameters');
|
$description = StatusBoard_Main::issetelse($_POST['description'], 'Sihnon_Exception_InvalidParameters');
|
||||||
|
|
||||||
$incident->changeStatus($status, $description);
|
$incident->changeStatus($status, $description);
|
||||||
|
|
||||||
|
if ($status == StatusBoard_Status::STATUS_Resolved) {
|
||||||
|
$incident->actual_end_time = time();
|
||||||
|
$incident->save();
|
||||||
|
}
|
||||||
|
|
||||||
$messages[] = array(
|
$messages[] = array(
|
||||||
'severity' => 'success',
|
'severity' => 'success',
|
||||||
'content' => 'The incident status was changed successfully.',
|
'content' => 'The incident status was changed successfully.',
|
||||||
|
|||||||
Reference in New Issue
Block a user