up observations

This commit is contained in:
qronald
2017-04-25 09:49:02 -04:00
parent fc10cccd79
commit f341e2a8e6

View File

@@ -2331,8 +2331,8 @@ class Cases
$rs->next();
$row = $rs->getRow();
$iLastStep = intval($row[0]);
if($iPosition > $iLastStep) {
throw (new Exception(G::LoadTranslation("ID_NO_RECORDS_FOUND")));
if ($iPosition > $iLastStep) {
throw (new Exception(G::LoadTranslation('ID_STEP_DOES_NOT_EXIST', array(G::LoadTranslation('ID_POSITION'), $iPosition))));
}
$iPosition += 1;
$aNextStep = null;