DirectorObjectForm: fields not required if inherited
This commit is contained in:
parent
611b94368b
commit
be99769fc6
|
@ -277,7 +277,7 @@ abstract class DirectorObjectForm extends QuickForm
|
||||||
$el->setLabel($datafield->caption);
|
$el->setLabel($datafield->caption);
|
||||||
$el->setDescription($datafield->description);
|
$el->setDescription($datafield->description);
|
||||||
|
|
||||||
if ($field->is_required === 'y' && ! $this->isTemplate()) {
|
if ($field->is_required === 'y' && ! $this->isTemplate() && $inherited === null) {
|
||||||
$el->setRequired(true);
|
$el->setRequired(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue