Skip to content

Commit

Permalink
Merge branch 'DOK-138' into release-week-26
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Jul 11, 2024
2 parents 5b0cbbd + 0a7d74f commit ca7d143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/Checkout/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function checkIfLastRealOrder(array $orderIds)
}

try {
$order = $this->orderRepository->get(end($orderIds));
$order = $this->orderRepository->get(array_key_last($orderIds));
$this->checkoutSession->setLastRealOrderId($order->getIncrementId());
} catch (NoSuchEntityException $exception) {
//
Expand Down

0 comments on commit ca7d143

Please sign in to comment.