Portal: Fixed friendlyname fields rendered as mandatory when they should have been readonly.

SVN:trunk[4658]
This commit is contained in:
Guillaume Lajarige
2017-04-04 08:01:47 +00:00
parent 5411e60c81
commit ab6cd49fcb

View File

@@ -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);
}