Skip to content

Commit 8280804

Browse files
committed
Prevent fields on users from being wiped
1 parent f9109a2 commit 8280804

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Customers/UserCustomerRepository.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ public function save(Customer $customer): void
9999
$ignoredKeys = array_merge($ignoredKeys, $user->model()->getAppends());
100100
}
101101

102-
$user->data(Arr::except($customer->data()->all(), $ignoredKeys));
102+
$user->data(array_merge(
103+
$user->data()->all(),
104+
Arr::except($customer->data()->all(), $ignoredKeys)
105+
));
103106

104107
$user->save();
105108

0 commit comments

Comments
 (0)