Skip to content

Commit

Permalink
Merge pull request #60 from craftcms/bugfix/59-sort-options-without-link
Browse files Browse the repository at this point in the history
Bugfix/59 sort options without link
  • Loading branch information
i-just authored Nov 27, 2024
2 parents 76aee7a + e753478 commit 78c84bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Stripe

## Unreleased

- Fixed a bug where the products index page gave impression that it was possible to sort by Link. ([#59](https://github.com/craftcms/stripe/issues/59))

## 1.3.0 - 2024-11-19

- Stripe now requires Craft CMS 5.5.0 or later.
Expand Down
1 change: 1 addition & 0 deletions src/elements/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ protected static function defineSortOptions(): array
$sortOptions = parent::defineSortOptions();

unset($sortOptions['stripeEdit']);
unset($sortOptions['link']);

$sortOptions['title'] = self::displayName();

Expand Down

0 comments on commit 78c84bc

Please sign in to comment.