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
|
// populate the array, JSON encode it and return
|
||||||
$pred_model = parse_ini_file($c_preds_path.$uuid."/".$c_scenario_file);
|
$pred_model = parse_ini_file($c_preds_path.$uuid."/".$c_scenario_file);
|
||||||
if ( verifyModel($pred_model, $software_available) ){
|
if ( verifyModel($pred_model, $software_available) ){
|
||||||
$pred_model['valid'] == true;
|
$pred_model['valid'] = true;
|
||||||
} else {
|
} else {
|
||||||
$pred_model['valid'] == false;
|
$pred_model['valid'] = false;
|
||||||
}
|
}
|
||||||
$pred_model['uuid'] = $uuid;
|
$pred_model['uuid'] = $uuid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ function populateFormByUUID(pred_uuid) {
|
||||||
appendDebug("The server said the model it made was invalid");
|
appendDebug("The server said the model it made was invalid");
|
||||||
} else {
|
} else {
|
||||||
// we're good to go, populate the form
|
// we're good to go, populate the form
|
||||||
alert(data);
|
|
||||||
}
|
}
|
||||||
}, 'json');
|
}, 'json');
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue