File tree Expand file tree Collapse file tree 5 files changed +39
-2
lines changed
lib/internal/Magento/Framework/Session Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,16 @@ public function __construct(
114
114
);
115
115
}
116
116
117
+ /**
118
+ * @inheritDoc
119
+ */
120
+ public function _resetState (): void
121
+ {
122
+ parent ::_resetState ();
123
+ $ this ->_isFirstAfterLogin = null ;
124
+ $ this ->acl = null ;
125
+ }
126
+
117
127
/**
118
128
* Refresh ACL resources stored in session
119
129
*
Original file line number Diff line number Diff line change @@ -139,6 +139,17 @@ public function __construct(
139
139
}
140
140
}
141
141
142
+ /**
143
+ * @inheritDoc
144
+ */
145
+ public function _resetState (): void
146
+ {
147
+ parent ::_resetState ();
148
+ $ this ->_quote = null ;
149
+ $ this ->_store = null ;
150
+ $ this ->_order = null ;
151
+ }
152
+
142
153
/**
143
154
* Retrieve quote model object
144
155
*
@@ -154,7 +165,7 @@ public function getQuote()
154
165
$ this ->_quote ->setCustomerGroupId ($ customerGroupId );
155
166
$ this ->_quote ->setIsActive (false );
156
167
$ this ->_quote ->setStoreId ($ this ->getStoreId ());
157
-
168
+
158
169
$ this ->quoteRepository ->save ($ this ->_quote );
159
170
$ this ->setQuoteId ($ this ->_quote ->getId ());
160
171
$ this ->_quote = $ this ->quoteRepository ->get ($ this ->getQuoteId (), [$ this ->getStoreId ()]);
Original file line number Diff line number Diff line change @@ -186,6 +186,19 @@ public function __construct(
186
186
->get (LoggerInterface::class);
187
187
}
188
188
189
+ /**
190
+ * @inheritDoc
191
+ */
192
+ public function _resetState (): void
193
+ {
194
+ parent ::_resetState ();
195
+ $ this ->_quote = null ;
196
+ $ this ->_customer = null ;
197
+ $ this ->_loadInactive = false ;
198
+ $ this ->isLoading = false ;
199
+ $ this ->_order = null ;
200
+ }
201
+
189
202
/**
190
203
* Set customer data.
191
204
*
Original file line number Diff line number Diff line change @@ -399,6 +399,9 @@ public function getCustomerGroupId()
399
399
public function _resetState (): void
400
400
{
401
401
$ this ->_customer = null ;
402
+ $ this ->_customerModel = null ;
403
+ $ this ->setCustomerId (null );
404
+ $ this ->setCustomerGroupId ($ this ->groupManagement ->getNotLoggedInGroup ()->getId ());
402
405
$ this ->_isCustomerIdChecked = null ;
403
406
parent ::_resetState ();
404
407
}
Original file line number Diff line number Diff line change @@ -639,6 +639,6 @@ private function initIniOptions()
639
639
public function _resetState (): void
640
640
{
641
641
session_write_close ();
642
- $ this -> urlHostCache = [];
642
+ static :: $ urlHostCache = [];
643
643
}
644
644
}
You can’t perform that action at this time.
0 commit comments