DirectorObjectForm: deal with subform values
This commit is contained in:
parent
5921f4773f
commit
78b01091eb
|
@ -576,8 +576,12 @@ abstract class DirectorObjectForm extends QuickForm
|
||||||
|
|
||||||
foreach ($post as $key => $value) {
|
foreach ($post as $key => $value) {
|
||||||
$el = $this->getElement($key);
|
$el = $this->getElement($key);
|
||||||
if ($el && ! $el->getIgnore()) {
|
if ($el) {
|
||||||
$values[$key] = $el->setValue($value)->getValue();
|
if (! $el->getIgnore()) {
|
||||||
|
$values[$key] = $el->setValue($value)->getValue();
|
||||||
|
}
|
||||||
|
} elseif ($sub = $this->getSubForm($key)) {
|
||||||
|
$values[$key] = $sub->populate($value)->getValues();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue