DirectorObjectForm: failing field elements...

...should still make part of the fields group
This commit is contained in:
Thomas Gelf 2015-11-19 09:24:45 +01:00
parent f50a1f7fec
commit e5ebcc4bcc

View File

@ -350,6 +350,7 @@ abstract class DirectorObjectForm extends QuickForm
$this->addElement('text', $name, array('disabled' => 'disabled')); $this->addElement('text', $name, array('disabled' => 'disabled'));
$el = $this->getElement($name); $el = $this->getElement($name);
$el->addError(sprintf('Form element could not be created, %s is missing', $className)); $el->addError(sprintf('Form element could not be created, %s is missing', $className));
$this->addToFieldsDisplayGroup($el);
return $el; return $el;
} }