Skip to content

Commit

Permalink
Merge branch '3.0' into 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed May 22, 2023
2 parents 3a0e477 + c17a769 commit f5a7fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"payum/payum-bundle": "^2.5",
"php-http/guzzle7-adapter": "^1.0",
"php-http/message-factory": "^1.0",
"pimcore/pimcore": "~10.6.1",
"pimcore/pimcore": "^10.5",
"rinvex/countries": "^7.3",
"sebastian/diff": "^4.0 | ^5.0",
"stof/doctrine-extensions-bundle": "^1.6",
Expand Down Expand Up @@ -160,7 +160,7 @@
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"branch-alias": {
"dev-master": "3.1-dev"
"dev-master": "3.0-dev"
}
},
"config": {
Expand Down
4 changes: 4 additions & 0 deletions src/CoreShop/Component/Order/Modifier/VoucherModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function decrement(OrderInterface $order): void
continue;
}

if (!$item->getVoucherCode()) {
continue;
}

$voucherCode = $this->voucherCodeRepository->findByCode($item->getVoucherCode());
if ($voucherCode instanceof CartPriceRuleVoucherCodeInterface) {
if ($voucherCode->getUses() !== 0) {
Expand Down

0 comments on commit f5a7fb6

Please sign in to comment.