From a9f216bdc9d2bb4d1110b380757f08ca2fc61ec9 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Tue, 16 Aug 2011 16:01:51 -0400 Subject: [PATCH] BUG 7444 Adjustment the type of variable definition. --- workflow/engine/classes/class.pmFunctions.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 516a28954..4dcc8d893 100644 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -1646,10 +1646,13 @@ function setCaseTrackerCode($sApplicationUID, $sCode, $sPIN = '') { * */ function jumping ( $caseId, $delIndex ) { - $x = $this->PMFDerivateCase($caseId, $delIndex); - if($x==0) + try { + $x = PMFDerivateCase($caseId, $delIndex); + if($x==0) + G::SendTemporalMessage('ID_NOT_DERIVATED', 'error', 'labels'); + } catch (Exception $oException) { G::SendTemporalMessage('ID_NOT_DERIVATED', 'error', 'labels'); - + } G::header('Location: cases_List'); } /**