File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
app/code/Magento/Catalog/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,14 @@ public function __construct(
41
41
/**
42
42
* Resolve store id
43
43
*
44
- * Tries to take store id from store HTTP parameter, if can`t find it, try to dig into store_id
45
- * If param is absent in store_id too, take default one
44
+ * Tries to take store id from store HTTP parameter
46
45
* @see Store
47
46
*
48
47
* @return int
49
48
*/
50
49
private function resolveStoreId () : int
51
50
{
52
- $ storeId = $ this ->getRequest ()->getParam ('store ' , false );
53
- $ storeId = $ storeId === false ? $ this ->getRequest ()->getParam ('store_id ' , Store::DEFAULT_STORE_ID ) : $ storeId ;
54
- return (int ) $ storeId ;
51
+ return (int ) $ this ->getRequest ()->getParam ('store_id ' , Store::DEFAULT_STORE_ID );
55
52
}
56
53
57
54
/**
You can’t perform that action at this time.
0 commit comments