File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import/Product/Type Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -320,9 +320,9 @@ protected function _initAttributes()
320
320
unset(self ::$ commonAttributesCache [$ addedAttribute ['id ' ]]['options_use_table ' ]);
321
321
}
322
322
}
323
- if (! empty ($ attributesToLoadFromTable) ) {
323
+ foreach ( array_chunk ($ attributesToLoadFromTable, 1000 ) as $ attributesToLoadFromTableChunk ) {
324
324
$ collection = $ this ->attributeOptionCollectionFactory ->create ();
325
- $ collection ->setAttributeFilter (['in ' => $ attributesToLoadFromTable ]);
325
+ $ collection ->setAttributeFilter (['in ' => $ attributesToLoadFromTableChunk ]);
326
326
$ collection ->setStoreFilter (\Magento \Store \Model \Store::DEFAULT_STORE_ID );
327
327
foreach ($ collection as $ option ) {
328
328
$ attributeId = $ option ->getAttributeId ();
You can’t perform that action at this time.
0 commit comments