Skip to content

Commit

Permalink
Fix for #71
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Aug 9, 2024
1 parent b7ad45a commit 2229363
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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.0.1 - 2024-08-09
### Fixed
- Fixed error on payment overview, introduced by 5.2's new status element ([#71](https://github.com/studioespresso/craft-mollie-payments/issues/71))

## 5.0.0 - 2024-02-21
### Added
- Full Craft 5 support
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.0.0",
"version": "5.0.1",
"keywords": [
"craft",
"cms",
Expand Down
13 changes: 7 additions & 6 deletions src/elements/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use craft\base\Element;
use craft\elements\db\ElementQueryInterface;
use craft\elements\User;
use craft\enums\Color;
use craft\helpers\UrlHelper;
use studioespresso\molliepayments\actions\ExportAllPaymentsAction;
use studioespresso\molliepayments\actions\ExportPaymentAction;
Expand Down Expand Up @@ -114,12 +115,12 @@ public function getUiLabel(): string
public static function statuses(): array
{
return [
'cart' => ['label' => Craft::t('mollie-payments', 'In Cart'), 'color' => 'grey'],
'pending' => ['label' => Craft::t('mollie-payments', 'Pending'), 'color' => 'orange'],
'free' => ['label' => Craft::t('mollie-payments', 'Free'), 'color' => 'blue'],
'paid' => ['label' => Craft::t('mollie-payments', 'Paid'), 'color' => 'green'],
'expired' => ['label' => Craft::t('mollie-payments', 'Expired'), 'color' => 'red'],
'refunded' => ['label' => Craft::t('mollie-payments', 'Refunded'), 'color' => 'grey'],
'cart' => ['label' => Craft::t('mollie-payments', 'In Cart'), 'color' => Color::Gray],
'pending' => ['label' => Craft::t('mollie-payments', 'Pending'), 'color' => Color::Orange],
'free' => ['label' => Craft::t('mollie-payments', 'Free'), 'color' => Color::Blue],
'paid' => ['label' => Craft::t('mollie-payments', 'Paid'), 'color' => Color::Green],
'expired' => ['label' => Craft::t('mollie-payments', 'Expired'), 'color' => Color::Red],
'refunded' => ['label' => Craft::t('mollie-payments', 'Refunded'), 'color' => Color::Gray],
];
}

Expand Down

0 comments on commit 2229363

Please sign in to comment.