DirectorObjectForm: deal with subform values

This commit is contained in:
Thomas Gelf 2016-10-27 19:39:40 +00:00
parent 5921f4773f
commit 78b01091eb
1 changed files with 6 additions and 2 deletions

View File

@ -576,8 +576,12 @@ abstract class DirectorObjectForm extends QuickForm
foreach ($post as $key => $value) {
$el = $this->getElement($key);
if ($el && ! $el->getIgnore()) {
$values[$key] = $el->setValue($value)->getValue();
if ($el) {
if (! $el->getIgnore()) {
$values[$key] = $el->setValue($value)->getValue();
}
} elseif ($sub = $this->getSubForm($key)) {
$values[$key] = $sub->populate($value)->getValues();
}
}
}