Skip to content

Commit

Permalink
Changelog for 5.1.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Jul 29, 2024
1 parent 09b9fd4 commit d018f67
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 5.1.0-beta.01 - 2024-07-04
## 5.1.0-beta.3 - 2024-07-29
### Added
- Added an overview for subscribers

### Fixed
- Fixed an error when canceling a subscription from the CP

## 5.1.0-beta.2 - 2024-07-07
### Fixed
- Fix for payments that exist before upgrading to 5.1


## 5.1.0-beta.1 - 2024-07-04
### Added
- Initial support for Mollie Subscriptions

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minimum-stability": "alpha",
"description": "Easily accept payments with Mollie Payments",
"type": "craft-plugin",
"version": "5.1.0-beta.01",
"version": "5.1.0-beta.3",
"keywords": [
"craft",
"cms",
Expand Down
7 changes: 5 additions & 2 deletions src/controllers/SubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,13 @@ public function actionCancel()
{
if (!$this->request->isCpRequest) {
$this->requirePostRequest();
$subscription = $this->request->getRequiredBodyParam('subscription');
$subscriber = $this->request->getRequiredBodyParam('subscriber');
} else {
$subscription = $this->request->getRequiredQueryParam('subscription');
$subscriber = $this->request->getRequiredQueryParam('subscriber');
}

$subscription = $this->request->getRequiredBodyParam('subscription');
$subscriber = $this->request->getRequiredBodyParam('subscriber');

$subscription = Subscription::findOne(['id' => $subscription]);
$subscriber = SubscriberRecord::findOne(['uid' => $subscriber]);
Expand Down

0 comments on commit d018f67

Please sign in to comment.