Просмотр исходного кода

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 лет назад
Родитель
Сommit
c090ae3838
1 измененных файлов с 1 добавлено и 1 удалено
  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);
 		}