Skip to content

Commit 828f18b

Browse files
author
Mohammad HAJ SALEM
committed
🐛 fix variable re-naming
1 parent aa5bc4f commit 828f18b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/Product/Link/SaveHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function execute($entityType, $entity)
6666
$link = $entity->getData($this->metadataPool->getMetadata($entityType)->getLinkField());
6767
if ($this->linkResource->hasProductLinks($link)) {
6868
/** @var \Magento\Catalog\Api\Data\ProductInterface $entity */
69-
foreach ($this->productLinkRepository->getList($entity) as $link) {
70-
$this->productLinkRepository->delete($link);
69+
foreach ($this->productLinkRepo->getList($entity) as $link) {
70+
$this->productLinkRepo->delete($link);
7171
}
7272
}
7373
$productLinks = $entity->getProductLinks();
@@ -97,7 +97,7 @@ public function execute($entityType, $entity)
9797

9898
if (count($productLinks) > 0) {
9999
foreach ($entity->getProductLinks() as $link) {
100-
$this->productLinkRepository->save($link);
100+
$this->productLinkRepo->save($link);
101101
}
102102
}
103103
return $entity;

0 commit comments

Comments
 (0)