DirectorObjectForm: fix forgotten variable

This commit is contained in:
Thomas Gelf 2016-09-09 21:38:49 +00:00
parent f52cd5ea77
commit 04cae6f8f8

View File

@ -543,7 +543,7 @@ abstract class DirectorObjectForm extends QuickForm
$this->addElement($el); $this->addElement($el);
$this->addToCommandFieldsDisplayGroup($el); $this->addToCommandFieldsDisplayGroup($el);
if (! $el->hasErrors()) { if (! $el->hasErrors()) {
$this->setElementValue($name, $value, $inherited, $inheritedFrom); $this->setElementValue($el->getName(), $value, $inherited, $inheritedFrom);
} }
return $el; return $el;