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:
Guillaume Lajarige
2017-07-03 07:33:46 +00:00
parent a0259636b1
commit 9a56c3acfd

View File

@@ -510,9 +510,9 @@ class ObjectFormManager extends FormManager
// Skipping fields that were not specified to DM only list (garbage collector)
if($this->IsTransitionForm() && !array_key_exists($sAttCode, $aFieldsAtts))
{
if( (($iFieldFlags & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY && $oAttDef->IsNull($this->oObject->Get($sAttCode)))
|| (($iFieldFlags & OPT_ATT_MUSTPROMPT) === OPT_ATT_MUSTPROMPT)
|| (($iFieldFlags & OPT_ATT_MUSTCHANGE) === OPT_ATT_MUSTCHANGE))
if( (($value & OPT_ATT_MANDATORY) === OPT_ATT_MANDATORY && $oAttDef->IsNull($this->oObject->Get($sAttCode)))
|| (($value & OPT_ATT_MUSTPROMPT) === OPT_ATT_MUSTPROMPT)
|| (($value & OPT_ATT_MUSTCHANGE) === OPT_ATT_MUSTCHANGE))
{
if(!in_array($sAttCode, $aFieldsDMOnlyAttCodes))
{