File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,17 @@ public function __construct(
70
70
public function execute ()
71
71
{
72
72
$ customerData = $ this ->jsonHelper ->jsonDecode ($ this ->getRequest ()->getContent ());
73
- if (isset ($ customerData ['customer_id ' ]) && $ this ->notificationStorage ->isExists (
73
+ if (isset ($ customerData ['customer_id ' ])
74
+ && $ this ->notificationStorage ->isExists (
74
75
NotificationStorage::UPDATE_CUSTOMER_SESSION ,
75
- $ customerData ['customer_id ' ])
76
+ $ customerData ['customer_id ' ]
77
+ )
76
78
) {
77
79
$ customer = $ this ->customerRepository ->getById ($ customerData ['customer_id ' ]);
78
80
$ this ->session ->setCustomerData ($ customer );
79
81
$ this ->session ->setCustomerGroupId ($ customer ->getGroupId ());
80
82
$ this ->session ->regenerateId ();
81
- $ this ->notificationStorage ->remove (NotificationStorage::UPDATE_CUSTOMER_SESSION , $ customerData [ ' customer_id ' ] );
83
+ $ this ->notificationStorage ->remove (NotificationStorage::UPDATE_CUSTOMER_SESSION , $ customer -> getId () );
82
84
}
83
85
}
84
86
}
Original file line number Diff line number Diff line change @@ -45,10 +45,13 @@ class CustomerNotification
45
45
private $ state ;
46
46
47
47
/**
48
+ * CustomerNotification constructor.
49
+ *
48
50
* @param Session $session
49
51
* @param NotificationStorage $notificationStorage
50
52
* @param CookieManagerInterface $cookieManager
51
53
* @param CookieMetadataFactory $cookieMetadataFactory
54
+ * @param State $state
52
55
*/
53
56
public function __construct (
54
57
Session $ session ,
You can’t perform that action at this time.
0 commit comments