Fix customer user not being associated with customer record #730
This commit is contained in:
parent
202b984aa2
commit
95b5c59db2
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ class CustomerController extends ApiController
|
||||||
->setEmail($req->request->get('email', ''))
|
->setEmail($req->request->get('email', ''))
|
||||||
->setConfirmed($this->session->isConfirmed());
|
->setConfirmed($this->session->isConfirmed());
|
||||||
|
|
||||||
|
// if customer user isn't set, set it now
|
||||||
|
if ($cust->getCustomerUser() == null) {
|
||||||
|
$cust->setCustomerUser($this->session->getCustomerUser());
|
||||||
|
}
|
||||||
|
|
||||||
// update mobile phone of customer
|
// update mobile phone of customer
|
||||||
$cust->setPhoneMobile(substr($this->session->getPhoneNumber(), 2));
|
$cust->setPhoneMobile(substr($this->session->getPhoneNumber(), 2));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue