Skip to content

Commit 7ead55b

Browse files
Merge pull request #198 from angrybrad/craft-4
Fixed a Mutex exception that could occur in certain scenarios when retrieving a cart
2 parents bb128dc + 9cde041 commit 7ead55b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixed
6+
- Fixed a Mutex exception that could occur in certain scenarios when retrieving a cart.
7+
38
## 2.0.11 - 2025-09-02
49

510
### Added

src/elements/Ticket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function populateLineItem(LineItem $lineItem): void
436436
{
437437
$errors = [];
438438

439-
$cart = Commerce::getInstance()->getCarts()->getCart();
439+
$cart = $lineItem->getOrder();
440440

441441
// Get the total number of tickets for the same event and ticket type. We can't just rely on quantity
442442
// of this line item as there could be tickets with unique options set, which are separate line items.

0 commit comments

Comments
 (0)