Fix broken insert

This commit is contained in:
sctn4elk 2024-05-24 23:33:31 -05:00
parent 0878d1af1c
commit cbf7f6a127
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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);