Ver código fonte

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4658 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 anos atrás
pai
commit
c090ae3838
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      core/attributedef.class.inc.php

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