mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-12 12:34:12 +01:00
(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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user