Skip to content

Commit

Permalink
Merge branch '4.x' into 5.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	src/controllers/SubscriptionsController.php
  • Loading branch information
lukeholder committed Oct 16, 2024
2 parents 9e33559 + 1b36426 commit cb911ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- Fixed a PHP error that could occur when creating a subscription. ([#3710](https://github.com/craftcms/commerce/issues/))
- Fixed a bug where inventory items could appear with blank descriptions on the Inventory management screen. ([#3706](https://github.com/craftcms/commerce/issues/3706))
- Fixed a bug where additional buttons defined with `Order::EVENT_DEFINE_ADDITIONAL_BUTTONS` weren’t displayed on the Edit Order screen. ([#3692](https://github.com/craftcms/commerce/issues/3692))
- Fixed a bug where email errors weren’t displayed on the Edit Order screen. ([#3693](https://github.com/craftcms/commerce/issues/3693))
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/SubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function actionSubscribe(): ?Response
} catch (SubscriptionException $exception) {
$error = $exception->getMessage();
}

if ($subscription && $returnUrl) {
$returnUrl = $this->getView()->renderObjectTemplate($returnUrl, $subscription);
$subscriptionRecord = SubscriptionRecord::findOne($subscription->id);
Expand Down

0 comments on commit cb911ff

Please sign in to comment.