- Reload the object after applying a stimulus, in case an action has an effect on an external field...

SVN:1.2[1664]
This commit is contained in:
Denis Flaven
2011-11-14 10:43:06 +00:00
parent 65a3755f81
commit 4598959bc2

View File

@@ -393,6 +393,7 @@ function ApplyNextAction(Webpage $oP, CMDBObject $oObj, $sNextAction, $oMyChange
}
$oObj->DBUpdateTracked($oMyChange);
}
$oObj->Reload();
$oObj->DisplayDetails($oP);
}
else
@@ -842,7 +843,7 @@ try
$currValue = $oObj->Get($sAttCode);
if ($oAttDef instanceof AttributeCaseLog)
{
$currValue = '';
$currValue = ' '; // Don't put an empty string, in case the field would be considered as mandatory...
}
if (is_object($currValue)) continue; // Skip non scalar values...
if(!array_key_exists($currValue, $aValues[$sAttCode]))
@@ -2006,6 +2007,7 @@ EOF
$oP->p(implode('</p><p>', $aErrors));
}
}
$oObj->Reload();
$oObj->DisplayDetails($oP);
}
else