From be99769fc6a63349e78e26f3395ed7681106cc42 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 3 Aug 2015 13:51:55 +0200 Subject: [PATCH] DirectorObjectForm: fields not required if inherited --- library/Director/Web/Form/DirectorObjectForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index b3eaf940..cc2210e9 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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); }