Revert "DirectorObjectForm: do not set null defaults"
This reverts commit ce7b6031ff
.
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…
Reference in New Issue