You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see that it is returning admin because it ignores the store parameter or getDefaultStoreView
(it even ignores the adminhtml router in local.xml, but that is a different thing)
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
My Test URL
https://myserver/api/rest/products/sku?store=5
The JSON output:
see that it is returning
admin
because it ignores the store parameter orgetDefaultStoreView
(it even ignores the
adminhtml
router inlocal.xml
, but that is a different thing)The problem is this piece:
magento-lts/app/code/core/Mage/Catalog/Model/Api2/Product/Rest.php
Line 121 in fc9a8ca
a few lines above, the WebsiteId is set from the store I used as parameter:
magento-lts/app/code/core/Mage/Catalog/Model/Api2/Product/Rest.php
Line 106 in fc9a8ca
changing it to this solves the issue:
@sreichel if you want, I can make an MR soon.
The text was updated successfully, but these errors were encountered: