Skip to content

Commit 22876ee

Browse files
committed
Fix issue with default not being overriden
1 parent c65af76 commit 22876ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/DataService/LoadService.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public function __construct(array $loaders)
4040
}
4141

4242
/**
43-
* Checks if SKU is assigned
43+
* Returns mapped ID to a provided SKU
44+
*
45+
* When SKU is not found it returns null
4446
*
4547
* @param string $sku
4648
* @return int|null
@@ -104,7 +106,7 @@ public function load(string $type, ScopeFilter $filter, array $products)
104106
$this->skuToId[$adapter->getSku()] = $productId;
105107
}
106108

107-
$this->storage[$code] += $defaultData + $loader->load($filter, $productsToLoad);
109+
$this->storage[$code] += $loader->load($filter, $productsToLoad) + $defaultData;
108110
}
109111
}
110112
}

0 commit comments

Comments
 (0)