Skip to content

Commit

Permalink
The view mode isn't a revertable view setting
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
brandonkelly committed Dec 27, 2024
1 parent fbc675f commit e3a22e1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fixed a bug where the password input on the Set Password page wasn’t including the “Show” button.
- Fixed a SQL error that could occur if an element was saved with a title longer than 255 characters.
- Fixed an error that could occur when creating nested entries within Matrix fields. ([#16331](https://github.com/craftcms/cms/issues/16331))
- Fixed a bug where element index View menus could include a “Use defaults” button when no view customizations had been made.
- Fixed an RCE vulnerability.

## 5.5.7 - 2024-12-17
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.

6 changes: 0 additions & 6 deletions src/web/assets/cp/src/js/BaseElementIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -4067,12 +4067,6 @@ const ViewMenu = Garnish.Base.extend({
updateMenuContent: function () {
this.updateSortField();
this.updateTableFieldVisibility();
if (
this.elementIndex.getSelectedSourceState('mode') !==
this.elementIndex.defaultViewMode
) {
this._createRevertBtn();
}
},

menuHasContent: function () {
Expand Down

0 comments on commit e3a22e1

Please sign in to comment.