Commit b45bf7cb by Jansa Jose

change in webservice model

parent 2429d097
......@@ -397,7 +397,7 @@ class Webservice_model extends CI_Model {
$mechanic_data['services'] = json_decode($mechanic_data['issues_selected']);
unset($mechanic_data['issues_selected']);
}
$mechanic_data['scheduled_date'] = strtotime($mechanic_data['scheduled_date']);
$mechanic_data['scheduled_date'] = strval(strtotime($mechanic_data['scheduled_date']));
$respArr['status'] = 'success';
$respArr['message'] = 'success';
$respArr['data'] = $mechanic_data;
......@@ -1612,7 +1612,6 @@ class Webservice_model extends CI_Model {
AND VEHM.model_name LIKE '$veh_data->model'"
);
}
//pr($this->db->last_query());
if(!empty($result) && $result->num_rows() > 0 && !empty($data = $result->row())){
$respArr['data'] = $data;
$respArr['status'] = 'success';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment