Version bump and codechecker fixes.

This commit is contained in:
abhinavgandham
2026-01-20 15:31:33 +10:00
committed by Brendan Heywood
parent 6ca7cb6d7e
commit bf51ff6de9
3 changed files with 6 additions and 7 deletions

View File

@@ -136,7 +136,7 @@ class edit extends moodleform {
}
$outagedata = [
'id' => ($data->id === 0) ? null : $data->id,
// 'autostart' => (isset($data->autostart) && ($data->autostart == 1)),
'autostart' => (isset($data->autostart) && ($data->autostart == 1)),
'starttime' => $data->starttime,
'stoptime' => $data->starttime + $data->outageduration,
'warntime' => $data->starttime - $data->warningduration,
@@ -161,7 +161,7 @@ class edit extends moodleform {
if ($outage instanceof outage) {
$this->_form->setDefaults([
'id' => $outage->id,
// 'autostart' => $outage->autostart,
'autostart' => $outage->autostart,
'starttime' => $outage->starttime,
'outageduration' => $outage->get_duration_planned(),
'warningduration' => $outage->get_warning_duration(),