git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4658 a333f486-631f-4898-b8df-5754b55c2be0
@@ -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);