Return header in saveresult
This commit is contained in:
@@ -4368,15 +4368,19 @@ class Resultentry extends MY_Controller
|
||||
$this->sys_error_db("group result tidak ditemukan", $this->db_onedev);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
$result = array(
|
||||
"total" => 1,
|
||||
"records" => array('status' => 'OK')
|
||||
);
|
||||
$this->sys_ok($result);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "SELECT * FROM so_resultentry WHERE So_ResultEntryID = {$last_id} LIMIT 1";
|
||||
$fresh_header = $this->db_onedev->query($sql)->row_array();
|
||||
|
||||
$result = array(
|
||||
"total" => 1,
|
||||
"records" => array('status' => 'OK'),
|
||||
"header" => $fresh_header
|
||||
);
|
||||
$this->sys_ok($result);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user