Revert "DirectorObjectForm: do not set null defaults"

This reverts commit ce7b6031ff.

Broke quite some forms
This commit is contained in:
Thomas Gelf 2016-03-21 22:51:03 +01:00
parent c36093d350
commit 5e540880e5
1 changed files with 0 additions and 8 deletions

View File

@ -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);