Explorar el Código

N°642 Portal: Flags on transition, fixed a bug with state form not reading DM flags correctly.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4793 a333f486-631f-4898-b8df-5754b55c2be0
glajarige hace 8 años
padre
commit
9413b41a7c

+ 1 - 3
datamodels/2.x/itop-portal-base/portal/src/forms/objectformmanager.class.inc.php

@@ -527,9 +527,7 @@ class ObjectFormManager extends FormManager
 				if (array_key_exists($sAttCode, $aFieldsAtts))
 				{
 				    // .. 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
 				if ((($iFieldFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY) && ($this->oObject->Get($sAttCode) === ''))