mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°642 Portal: Flags on transition part 2. Fixed a bug on transition with field that should have been must_xxx from DM
SVN:trunk[4788]
This commit is contained in:
@@ -510,9 +510,9 @@ class ObjectFormManager extends FormManager
|
|||||||
// Skipping fields that were not specified to DM only list (garbage collector)
|
// Skipping fields that were not specified to DM only list (garbage collector)
|
||||||
if($this->IsTransitionForm() && !array_key_exists($sAttCode, $aFieldsAtts))
|
if($this->IsTransitionForm() && !array_key_exists($sAttCode, $aFieldsAtts))
|
||||||
{
|
{
|
||||||
if( (($iFieldFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY && $oAttDef->IsNull($this->oObject->Get($sAttCode)))
|
if( (($value & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY && $oAttDef->IsNull($this->oObject->Get($sAttCode)))
|
||||||
|| (($iFieldFlags & OPT_ATT_MUSTPROMPT) === OPT_ATT_MUSTPROMPT)
|
|| (($value & OPT_ATT_MUSTPROMPT) === OPT_ATT_MUSTPROMPT)
|
||||||
|| (($iFieldFlags & OPT_ATT_MUSTCHANGE) === OPT_ATT_MUSTCHANGE))
|
|| (($value & OPT_ATT_MUSTCHANGE) === OPT_ATT_MUSTCHANGE))
|
||||||
{
|
{
|
||||||
if(!in_array($sAttCode, $aFieldsDMOnlyAttCodes))
|
if(!in_array($sAttCode, $aFieldsDMOnlyAttCodes))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user