mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Raise validation_errors to frontend
This commit is contained in:
@@ -309,6 +309,9 @@ class QSO extends CI_Controller {
|
||||
if ($this->form_validation->run()) {
|
||||
$edit_result=$this->logbook_model->edit();
|
||||
} else {
|
||||
if (validation_errors() != '') {
|
||||
$edit_result['detail']=validation_errors();
|
||||
}
|
||||
$edit_result['success']=false;
|
||||
}
|
||||
header('Content-Type: application/json');
|
||||
|
||||
Reference in New Issue
Block a user