DirectorObjectForm: fields not required if inherited

This commit is contained in:
Thomas Gelf 2015-08-03 13:51:55 +02:00
parent 611b94368b
commit be99769fc6
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ abstract class DirectorObjectForm extends QuickForm
$el->setLabel($datafield->caption);
$el->setDescription($datafield->description);
if ($field->is_required === 'y' && ! $this->isTemplate()) {
if ($field->is_required === 'y' && ! $this->isTemplate() && $inherited === null) {
$el->setRequired(true);
}