fix: 🐛 resolve delete postal code field data when password is updated #199
This commit is contained in:
parent
83e9273d77
commit
bf84a1d7a8
1 changed files with 3 additions and 1 deletions
|
|
@ -334,7 +334,9 @@ class Customer extends Authenticatable implements MustVerifyEmail
|
|||
if (!$crmCustomer) {
|
||||
throw new CrmException('CRM get Customer returned null');
|
||||
}
|
||||
$data['postcode'] = Arr::get($data, 'postal_code');
|
||||
if (isset($data["postal_code"])) {
|
||||
$data['postcode'] = Arr::get($data, 'postal_code');
|
||||
}
|
||||
unset(
|
||||
$data["username"],
|
||||
$data["question_id"],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue