Skip to content

Commit

Permalink
Merge branch '5.x' into 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 22, 2024
2 parents 9154bf9 + 0681a7f commit d4a7ad0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 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 Craft CMS 5

## Unreleased

- Fixed a bug where element indexes were sorting by the first sortable attribute alphabetically by default, rather than the first sortable attribute defined by the element type.

## 5.5.2 - 2024-11-19

- Fixed an error that could occur if an invalid folder ID was passed to `craft\services\Assets::deleteFoldersByIds()`. ([#16147](https://github.com/craftcms/cms/pull/16147))
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
- src
- tests
excludePaths:
- src/config/composer-classes.php
- src/config/mimeTypes.php
- src/image/*
- src/services/Images.php
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/src/js/BaseElementIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,7 @@ Craft.BaseElementIndex = Garnish.Base.extend(
* @returns {Object[]}
*/
getSortOptions: function ($source) {
const sortOptions = this.getSourceData($source, 'sort-opts') || [];
const sortOptions = [...(this.getSourceData($source, 'sort-opts') || [])];

// Make sure there's at least one attribute
if (!sortOptions.length) {
Expand Down

0 comments on commit d4a7ad0

Please sign in to comment.