diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index fd0e06a4e..98e2fd731 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); }