mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Revert "DirectorObjectForm: do not set null defaults"
This reverts commit ce7b6031ff6964ea53c2b1d45039c6849cfd5fe7. Broke quite some forms
This commit is contained in:
parent
c36093d350
commit
5e540880e5
@ -183,18 +183,10 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
unset($props['vars']);
|
||||
}
|
||||
|
||||
$null = array();
|
||||
foreach ($props as $k => $v) {
|
||||
if (is_bool($v)) {
|
||||
$props[$k] = $v ? 'y' : 'n';
|
||||
}
|
||||
if ($v === null) {
|
||||
$null[] = $k;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($null as $k) {
|
||||
unset($props[$k]);
|
||||
}
|
||||
|
||||
$this->setDefaults($props);
|
||||
|
Loading…
x
Reference in New Issue
Block a user