Skip to content

Commit

Permalink
Merge branch '4.x' into 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Oct 16, 2024
2 parents c8e7cdf + 00194bd commit 21adfa0
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 21adfa0

Please sign in to comment.