From 219ab513b561052fce6739c8c0760bf87c756a93 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Thu, 4 May 2023 18:07:38 +0800 Subject: [PATCH] Remove truncation of first two digits on customer creation for new API #730 --- src/Controller/CustomerAppAPI/CustomerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/CustomerAppAPI/CustomerController.php b/src/Controller/CustomerAppAPI/CustomerController.php index 88401054..4ba7279c 100644 --- a/src/Controller/CustomerAppAPI/CustomerController.php +++ b/src/Controller/CustomerAppAPI/CustomerController.php @@ -138,7 +138,7 @@ class CustomerController extends ApiController } // update mobile phone of customer - $cust->setPhoneMobile(substr($this->session->getPhoneNumber(), 2)); + $cust->setPhoneMobile($this->session->getPhoneNumber()); return $cust; }