File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
app/code/Magento/LoginAsCustomerUi/Controller/Adminhtml/Login Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,13 @@ public function execute(): ResultInterface
146
146
return $ resultRedirect ->setPath ('customer/index/index ' );
147
147
}
148
148
149
- $ storeId = (int )$ this ->_request ->getParam ('store_id ' );
150
- if (empty ($ storeId ) && $ this ->config ->isStoreManualChoiceEnabled ()) {
151
- $ this ->messageManager ->addNoticeMessage (__ ('Please select a Store View to login in. ' ));
152
- return $ resultRedirect ->setPath ('customer/index/edit ' , ['id ' => $ customerId ]);
149
+ $ storeId = null ;
150
+ if ($ this ->config ->isStoreManualChoiceEnabled ()) {
151
+ $ storeId = (int )$ this ->_request ->getParam ('store_id ' );
152
+ if (empty ($ storeId )) {
153
+ $ this ->messageManager ->addNoticeMessage (__ ('Please select a Store View to login in. ' ));
154
+ return $ resultRedirect ->setPath ('customer/index/edit ' , ['id ' => $ customerId ]);
155
+ }
153
156
}
154
157
155
158
$ adminUser = $ this ->authSession ->getUser ();
You can’t perform that action at this time.
0 commit comments