BUG 8445 Don't work jump the cases list SOLVED
- I Add validate to cases numbers not exists - I Add message in translation ID_CASE_DOES_NOT_EXIST_JS
This commit is contained in:
@@ -967,6 +967,24 @@ switch(($_POST['action'])?$_POST['action']:$_REQUEST['action']) {
|
||||
echo $json->encode($aTypesID);
|
||||
}
|
||||
break;
|
||||
case "previusJump":
|
||||
require_once 'classes/model/Application.php';
|
||||
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->add(ApplicationPeer::APP_NUMBER, $_POST['appNumber']);
|
||||
$oDataset = ApplicationPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$oDataset->next();
|
||||
$aApplication = $oDataset->getRow();
|
||||
|
||||
if (is_array($aApplication)) {
|
||||
echo '{"success": true, "exists": true}';
|
||||
} else {
|
||||
echo '{"success": true, "exists": false}';
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
|
||||
default:
|
||||
echo 'default';
|
||||
|
||||
Reference in New Issue
Block a user