Skip to content

Commit 1d92fc9

Browse files
committed
Merge branch '4.x' into 5.x
# Conflicts: # CHANGELOG.md # src/controllers/OrdersController.php
2 parents bf0c75f + 12e7920 commit 1d92fc9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft Commerce
22

3+
## Unreleased
4+
5+
- Fixed a bug where order errors weren't showing on the Edit Order page.
6+
37
## 5.2.8 - 2024-12-04
48

59
- Fixed a bug where line items weren’t getting hyperlinked within Edit Order pages. ([#3792](https://github.com/craftcms/commerce/issues/3792))

src/controllers/OrdersController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,7 @@ private function _registerJavascript(array $variables): void
14441444

14451445
if ($order->hasErrors()) {
14461446
$response['order']['errors'] = $order->getErrors();
1447+
$response['errors'] = $order->getErrors();
14471448
$response['error'] = Craft::t('commerce', 'The order is not valid.');
14481449
}
14491450

0 commit comments

Comments
 (0)