From cbf7f6a127c6566e060c995347f8f881e1ed3785 Mon Sep 17 00:00:00 2001 From: sctn4elk Date: Fri, 24 May 2024 23:33:31 -0500 Subject: [PATCH] Fix broken insert --- Controller/API/CustomerController.php | 1 + Model/CustomerModel.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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);