diff --git a/Controller/API/CustomerController.php b/Controller/API/CustomerController.php index e63e55b..1389353 100644 --- a/Controller/API/CustomerController.php +++ b/Controller/API/CustomerController.php @@ -124,6 +124,7 @@ class CustomerController extends BaseController { //remove customer_id field so it doesn't break unset($input['customer_id']); + unset($input['image_path']); $response = $this->customerModel->insertCustomer($input); return $response; diff --git a/Model/CustomerModel.php b/Model/CustomerModel.php index d4d9b57..4867ef4 100644 --- a/Model/CustomerModel.php +++ b/Model/CustomerModel.php @@ -41,7 +41,7 @@ class CustomerModel extends Database { public function insertCustomer($inputModel) { - //return var_dump($jsonPayLoad); + //return var_dump($inputModel); $keys = array_keys($inputModel); $n = count($keys);