Fixed model validity verification bug in getModelByUUID
rodzic
b05394e628
commit
2a1b678d2c
|
@ -41,9 +41,9 @@ case "getModelByUUID":
|
|||
// populate the array, JSON encode it and return
|
||||
$pred_model = parse_ini_file($c_preds_path.$uuid."/".$c_scenario_file);
|
||||
if ( verifyModel($pred_model, $software_available) ){
|
||||
$pred_model['valid'] == true;
|
||||
$pred_model['valid'] = true;
|
||||
} else {
|
||||
$pred_model['valid'] == false;
|
||||
$pred_model['valid'] = false;
|
||||
}
|
||||
$pred_model['uuid'] = $uuid;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ function populateFormByUUID(pred_uuid) {
|
|||
appendDebug("The server said the model it made was invalid");
|
||||
} else {
|
||||
// we're good to go, populate the form
|
||||
alert(data);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue