From dcf94f1161235e5e07c978cf2196191fd3192de2 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Tue, 4 Apr 2017 08:03:22 +0000 Subject: [PATCH] (Retrofit from trunk) Portal: Fixed friendlyname fields rendered as mandatory when they should have been readonly. SVN:2.3[4659] --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }