Issue #4643 fixed
This commit is contained in:
parent
abc866e73b
commit
e581c950df
|
|
@ -72,9 +72,10 @@ class SubscriptionController extends Controller
|
|||
|
||||
$customer = $subscriber->customer;
|
||||
|
||||
$customer->subscribed_to_news_letter = $data['is_subscribed'];
|
||||
|
||||
$customer->save();
|
||||
if (! is_null($customer)) {
|
||||
$customer->subscribed_to_news_letter = $data['is_subscribed'];
|
||||
$customer->save();
|
||||
}
|
||||
|
||||
$result = $subscriber->update($data);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
*
|
||||
!.gitignore
|
||||
Loading…
Reference in New Issue