Skip to content

Commit

Permalink
Use same fix as 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Oct 16, 2024
1 parent 1b36426 commit 00194bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/SubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function actionSubscribe(): ?Response
$error = $exception->getMessage();
}

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

0 comments on commit 00194bd

Please sign in to comment.