mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #55 - Fixed: cannot create or edit outage using GUI because field autostart is missing.
This commit is contained in:
1
new.php
1
new.php
@@ -44,6 +44,7 @@ if ($mform->is_cancelled()) {
|
||||
|
||||
$config = outagelib::get_config();
|
||||
$defaults = new outage([
|
||||
'autostart' => $config->default_autostart,
|
||||
'starttime' => time(),
|
||||
'stoptime' => time() + ($config->default_duration * 60),
|
||||
'warntime' => time() - ($config->default_warning_duration * 60),
|
||||
|
||||
Reference in New Issue
Block a user