PM-2903
0017516: Unable to add condition on basis of checkbox Causa: Al no tener un valor previo asignado a la variable de caso para la condicion del dynaform, no se cumple y por ende no se muestra el mismo. Solucion: se debe asignar un valor a la variable de caso en un trigger antes del dynaform.
This commit is contained in:
@@ -175,6 +175,7 @@ try {
|
|||||||
$oStep = $oStep->loadByProcessTaskPosition($_SESSION['PROCESS'], $_SESSION['TASK'], 1);
|
$oStep = $oStep->loadByProcessTaskPosition($_SESSION['PROCESS'], $_SESSION['TASK'], 1);
|
||||||
$triggerFields["APP_DATA"] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $oStep->getStepTypeObj(), $oStep->getStepUidObj(), 'BEFORE', $aFields['APP_DATA'] );
|
$triggerFields["APP_DATA"] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $oStep->getStepTypeObj(), $oStep->getStepUidObj(), 'BEFORE', $aFields['APP_DATA'] );
|
||||||
$oCase->updateCase( $_SESSION['APPLICATION'], $triggerFields );
|
$oCase->updateCase( $_SESSION['APPLICATION'], $triggerFields );
|
||||||
|
$_SESSION['beforeTriggersExecuted'] = true;
|
||||||
/*end Execute Before Triggers for first Task*/
|
/*end Execute Before Triggers for first Task*/
|
||||||
|
|
||||||
$aNextStep = $oCase->getNextStep( $_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION'] );
|
$aNextStep = $oCase->getNextStep( $_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION'] );
|
||||||
|
|||||||
@@ -159,7 +159,11 @@ if ($flagExecuteBeforeTriggers) {
|
|||||||
|
|
||||||
if (! isset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] )) {
|
if (! isset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] )) {
|
||||||
//Execute before triggers - Start
|
//Execute before triggers - Start
|
||||||
|
if (!isset($_SESSION['beforeTriggersExecuted'])) {
|
||||||
$Fields['APP_DATA'] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $_GET['TYPE'], $_GET['UID'], 'BEFORE', $Fields['APP_DATA'] );
|
$Fields['APP_DATA'] = $oCase->ExecuteTriggers( $_SESSION['TASK'], $_GET['TYPE'], $_GET['UID'], 'BEFORE', $Fields['APP_DATA'] );
|
||||||
|
} else {
|
||||||
|
unset($_SESSION['beforeTriggersExecuted']);
|
||||||
|
}
|
||||||
//Execute before triggers - End
|
//Execute before triggers - End
|
||||||
} else {
|
} else {
|
||||||
unset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] );
|
unset( $_SESSION['_NO_EXECUTE_TRIGGERS_'] );
|
||||||
|
|||||||
Reference in New Issue
Block a user