Skip to content

Commit

Permalink
magento#18624 Refactoring: Bugfix: getExistingSku needs to be public
Browse files Browse the repository at this point in the history
Needs to be called from LinkProcessor
  • Loading branch information
amenk committed Mar 9, 2019
1 parent 10e68bc commit 87f4c35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2907,7 +2907,7 @@ private function isSkuExist($sku)
* @param string $sku
* @return array
*/
private function getExistingSku($sku)
public function getExistingSku($sku)
{
return $this->_oldSku[strtolower($sku)];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ protected function getLinkedId(string $linkedSku)
if ( ! empty($newSku)) {
$linkedId = $newSku['entity_id'];
} else {
$linkedId = $this->getExistingSku($linkedSku)['entity_id'];
$linkedId = $this->_entityModel->getExistingSku($linkedSku)['entity_id'];
}

return $linkedId;
Expand Down

0 comments on commit 87f4c35

Please sign in to comment.