Skip to content

Commit

Permalink
Merge pull request #2620 from solverat/solidifier
Browse files Browse the repository at this point in the history
reimplement existing data check in ProductQuantityPriceRulesCloner
  • Loading branch information
dpfaffenbauer committed Apr 25, 2024
2 parents c7dcfae + 7f39cd1 commit 36dd7e7
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -47,6 +47,11 @@ public function clone(
}

$quantityPriceRules = $referenceProduct->getQuantityPriceRules();
$hasQuantityPriceRules = count($product->getQuantityPriceRules()) > 0;

if ($hasQuantityPriceRules === true && $resetExistingData === false) {
return;
}

/**
* @var Concrete&ProductInterface $referenceProduct
Expand Down

0 comments on commit 36dd7e7

Please sign in to comment.