(Retrofit from trunk) Portal: Fixed friendlyname fields rendered as mandatory when they should have been readonly.

SVN:2.3[4659]
This commit is contained in:
Guillaume Lajarige
2017-04-04 08:03:22 +00:00
parent 5712981b4e
commit dcf94f1161

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