diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 49fb56d59..bfb47298c 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -565,7 +565,7 @@ abstract class AttributeDefinition } // - Comparing flags - if (!$this->IsNullAllowed() || (($iFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY)) + if ($this->IsWritable() && (!$this->IsNullAllowed() || (($iFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY))) { $oFormField->SetMandatory(true); }