Skip to content

Commit 118592a

Browse files
Merge pull request #270 from BitBagCommerce/fix_sold_unit_populate
Fixing the condition in orderItemRepository.countByVariant
2 parents 655c733 + edf27e1 commit 118592a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
run: vendor/bin/behat --colors --strict -vvv --no-interaction --tags '~@sylius112' || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun --tags '~@sylius112'
160160

161161
- name: Upload Behat logs
162-
uses: actions/upload-artifact@v3
162+
uses: actions/upload-artifact@v4
163163
if: failure()
164164
with:
165165
name: Behat logs

src/Repository/OrderItemRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct(
2525

2626
public function countByVariant(ProductVariantInterface $variant, array $orderStates = []): int
2727
{
28-
if ([] !== $orderStates) {
28+
if ([] === $orderStates) {
2929
$orderStates = [OrderInterface::STATE_CANCELLED, OrderInterface::STATE_CART];
3030
}
3131

tests/Application/.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ jobs:
187187

188188
-
189189
name: Upload Behat logs
190-
uses: actions/upload-artifact@v2
190+
uses: actions/upload-artifact@v4
191191
if: failure()
192192
with:
193193
name: Behat logs
194194
path: etc/build/
195-
if-no-files-found: ignore
195+
if-no-files-found: ignore

0 commit comments

Comments
 (0)