DirectorObjectForm: do not require imports...

...for scheduled downtimes
This commit is contained in:
Thomas Gelf 2019-03-18 12:20:01 +01:00
parent b1bf17569b
commit 12c74df38c
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ abstract class DirectorObjectForm extends DirectorForm
return $this;
}
if (in_array($this->getObjectShortClassName(), ['TimePeriod'])) {
if (in_array($this->getObjectShortClassName(), ['TimePeriod', 'ScheduledDowntime'])) {
$required = false;
} else {
$required = $required !== null ? $required : !$this->isTemplate();