Fixed model validity verification bug in getModelByUUID

pull/73/head
jonsowman 2010-06-06 10:25:09 +01:00
rodzic b05394e628
commit 2a1b678d2c
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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;
} }

Wyświetl plik

@ -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');
} }