From ab6cd49fcb5f92a85f72ff546512849f130bee44 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Tue, 4 Apr 2017 08:01:47 +0000 Subject: [PATCH] Portal: Fixed friendlyname fields rendered as mandatory when they should have been readonly. SVN:trunk[4658] --- 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 49fb56d59..bfb47298c 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); }