N°653.2 Lifecycle: Fixed a regression introduced on r4767, transition buttons not working properly when editing an object.

SVN:trunk[4951]
This commit is contained in:
Guillaume Lajarige
2017-09-29 08:23:13 +00:00
parent 6aa782bd8b
commit dd70275b41
2 changed files with 10 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ function ApplyNextAction(Webpage $oP, CMDBObject $oObj, $sNextAction)
throw new ApplicationException(Dict::Format('UI:Error:Invalid_Stimulus_On_Object_In_State', $sNextAction, $oObj->GetName(), $oObj->GetStateLabel()));
}
// Get the list of missing mandatory fields for the target state, considering only the changes from the previous form (i.e don't prompt twice)
$aExpectedAttributes = $oObj->GetExpectedAttributes($oObj->GetState(), $sNextAction, true /* $bOnlyNewOnes */);
$aExpectedAttributes = $oObj->GetTransitionAttributes($sNextAction);
if (count($aExpectedAttributes) == 0)
{