From 5f8eface2827832e8dbfa6e733535fbf67fafd8e Mon Sep 17 00:00:00 2001 From: jekkos Date: Thu, 4 Feb 2016 23:09:03 +0100 Subject: [PATCH] Properly save company_name in customer form --- application/controllers/Customers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Customers.php b/application/controllers/Customers.php index c1d155a76..201a1d3fd 100644 --- a/application/controllers/Customers.php +++ b/application/controllers/Customers.php @@ -73,7 +73,7 @@ class Customers extends Person_controller ); $customer_data=array( 'account_number'=>$this->input->post('account_number') == '' ? null : $this->input->post('account_number'), - 'company_name'=>$this->input->post('company_name') == '' ? null : $this->input->post('account_number'), + 'company_name'=>$this->input->post('company_name') == '' ? null : $this->input->post('company_name'), 'taxable'=>$this->input->post('taxable') != null ); if($this->Customer->save_customer($person_data,$customer_data,$customer_id))