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
1 changed files with 1 additions and 0 deletions

View File

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