mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°642 Portal: Flags on transition, fixed a bug with state form not reading DM flags correctly.
SVN:trunk[4793]
This commit is contained in:
@@ -527,9 +527,7 @@ class ObjectFormManager extends FormManager
|
|||||||
if (array_key_exists($sAttCode, $aFieldsAtts))
|
if (array_key_exists($sAttCode, $aFieldsAtts))
|
||||||
{
|
{
|
||||||
// .. We merge them all
|
// .. We merge them all
|
||||||
if($this->IsTransitionForm()) {
|
$aFieldsAtts[$sAttCode] = $aFieldsAtts[$sAttCode] | $iFieldFlags;
|
||||||
$aFieldsAtts[$sAttCode] = $aFieldsAtts[$sAttCode] | $iFieldFlags;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// - or it is mandatory and has no value
|
// - or it is mandatory and has no value
|
||||||
if ((($iFieldFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY) && ($this->oObject->Get($sAttCode) === ''))
|
if ((($iFieldFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY) && ($this->oObject->Get($sAttCode) === ''))
|
||||||
|
|||||||
Reference in New Issue
Block a user