diff --git a/api/application/controllers/Flyhi_Controller.php b/api/application/controllers/Flyhi_Controller.php index 367caf40..a499447d 100644 --- a/api/application/controllers/Flyhi_Controller.php +++ b/api/application/controllers/Flyhi_Controller.php @@ -1180,7 +1180,7 @@ class Flyhi_Controller extends REST_Controller { $update_fields2 = array('isactive' => 0); $this->Flyhi_Model->updateRecords($update_fields2,SALEPD_DOCS,array('doc_id'=>$records['img_id'])); } - + unset($records['img_id']); $id = $this->Flyhi_Model->saveRecords($records,SALEPD_DOCS); if($id) {