Skip to content

Commit

Permalink
Merge pull request #7 from girishanand/hotfix/issue6
Browse files Browse the repository at this point in the history
Using the Identifier entity_id instead of row_id while saving the conditionfor sku
  • Loading branch information
thaopw authored Sep 14, 2020
2 parents f30184a + 2eff8ef commit 44d58b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Helper/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private function getProductIdentifierField()
if ($this->productEntityIdentifierField === null) {
$this->productEntityIdentifierField = $this->getMetadataPool()
->getMetadata(ProductInterface::class)
->getLinkField();
->getIdentifierField();
}
return $this->productEntityIdentifierField;
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Condition/Sql/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private function getProductIdentifierField()
if ($this->productEntityIdentifierField === null) {
$this->productEntityIdentifierField = $this->getMetadataPool()
->getMetadata(ProductInterface::class)
->getLinkField();
->getIdentifierField();
}
return $this->productEntityIdentifierField;
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Indexer/Full.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private function getProductIdentifierField()
if ($this->productEntityIdentifierField === null) {
$this->productEntityIdentifierField = $this->getMetadataPool()
->getMetadata(ProductInterface::class)
->getLinkField();
->getIdentifierField();
}
return $this->productEntityIdentifierField;
}
Expand Down
2 changes: 1 addition & 1 deletion Model/Indexer/Row.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private function getProductIdentifierField()
if ($this->productEntityIdentifierField === null) {
$this->productEntityIdentifierField = $this->getMetadataPool()
->getMetadata(ProductInterface::class)
->getLinkField();
->getIdentifierField();
}
return $this->productEntityIdentifierField;
}
Expand Down

0 comments on commit 44d58b0

Please sign in to comment.