Fix order of arguments in substr call to phone number #137
This commit is contained in:
parent
24687364f2
commit
1101e61f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ class APIController extends Controller
|
|||
->setConfirmed($this->session->isConfirmed());
|
||||
|
||||
// update mobile phone of customer
|
||||
$cust->setPhoneMobile(substr(2, $this->session->getPhoneNumber()));
|
||||
$cust->setPhoneMobile(substr($this->session->getPhoneNumber(), 2));
|
||||
|
||||
$em->flush();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue