Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 36fadf4

Browse files
authored
ENGCOM-3328: Fixed miss called property in getStoreIdByCode method #143
2 parents 51b18ce + 06eb142 commit 36fadf4

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/BundleImportExport/Model/Import/Product/Type

1 file changed

+5
-1
lines changed

app/code/Magento/BundleImportExport/Model/Import/Product/Type/Bundle.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
/**
2222
* Class Bundle
23+
*
2324
* @package Magento\BundleImportExport\Model\Import\Product\Type
2425
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2526
*/
@@ -349,6 +350,8 @@ protected function populateSelectionTemplate($selection, $optionId, $parentId, $
349350
}
350351

351352
/**
353+
* Deprecated method for retrieving mapping between skus and products.
354+
*
352355
* @deprecated Misspelled method
353356
* @see retrieveProductsByCachedSkus
354357
*/
@@ -600,6 +603,7 @@ protected function insertOptions()
600603

601604
/**
602605
* Populate array for insert option values
606+
*
603607
* @param array $optionIds
604608
* @return array
605609
*/
@@ -779,7 +783,7 @@ protected function clear()
779783
*/
780784
private function getStoreIdByCode(string $storeCode): int
781785
{
782-
if (!isset($this->storeIdToCode[$storeCode])) {
786+
if (!isset($this->storeCodeToId[$storeCode])) {
783787
/** @var $store \Magento\Store\Model\Store */
784788
foreach ($this->storeManager->getStores() as $store) {
785789
$this->storeCodeToId[$store->getCode()] = $store->getId();

0 commit comments

Comments
 (0)