Merged in bugfix/HOR-3183 (pull request #5655)
HOR-3183 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -2331,7 +2331,7 @@ class Cases
|
||||
$rs->next();
|
||||
$row = $rs->getRow();
|
||||
$iLastStep = intval($row[0]);
|
||||
if ($iPosition > $iLastStep) {
|
||||
if ($iPosition != 10000 && $iPosition > $iLastStep) {
|
||||
throw (new Exception(G::LoadTranslation('ID_STEP_DOES_NOT_EXIST', array(G::LoadTranslation('ID_POSITION'), $iPosition))));
|
||||
}
|
||||
$iPosition += 1;
|
||||
|
||||
@@ -278,6 +278,7 @@ try {
|
||||
$aNextStep = $oCase->getNextStep( $_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION'] );
|
||||
$aPreviousStep = $oCase->getPreviousStep( $_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['STEP_POSITION'] );
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
//Obtain previous and next step - End
|
||||
|
||||
|
||||
Reference in New Issue
Block a user