File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/CatalogUrlRewrite/Observer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 25
25
use Magento \Framework \App \Config \ScopeConfigInterface ;
26
26
use Magento \Framework \App \ObjectManager ;
27
27
use Magento \Framework \DataObject ;
28
+ use Magento \Framework \EntityManager \MetadataPool ;
28
29
use Magento \Framework \Event \Observer ;
29
30
use Magento \Framework \Event \ObserverInterface ;
30
31
use Magento \Framework \Exception \LocalizedException ;
31
- use Magento \Framework \EntityManager \MetadataPool ;
32
32
use Magento \ImportExport \Model \Import as ImportExport ;
33
33
use Magento \Store \Model \Store ;
34
34
use Magento \Store \Model \StoreManagerInterface ;
@@ -499,8 +499,8 @@ private function getScopeBasedUrlKeyValues(array $products) : array
499
499
$ storeIds = [];
500
500
foreach ($ products as $ productId => $ productsByStores ) {
501
501
$ productIds [] = (int ) $ productId ;
502
- foreach ($ productsByStores as $ storeId => $ product ) {
503
- $ storeIds [] = (int ) $ storeId ;
502
+ foreach (array_keys ( $ productsByStores) as $ id ) {
503
+ $ storeIds [] = (int ) $ id ;
504
504
}
505
505
}
506
506
$ productIds = array_unique ($ productIds );
You can’t perform that action at this time.
0 commit comments