mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added return-values with details on failed save-attempt
This commit is contained in:
@@ -304,11 +304,14 @@ class QSO extends CI_Controller {
|
||||
$this->form_validation->set_rules('time_off', 'End Date', 'required');
|
||||
$this->form_validation->set_rules('id', 'qso ID', 'required');
|
||||
|
||||
$edit_result=array();
|
||||
$edit_result['success']=false;
|
||||
if ($this->form_validation->run()) {
|
||||
$edit_result=$this->logbook_model->edit();
|
||||
} else {
|
||||
$edit_result['success']=false;
|
||||
}
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode($edit_result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user