Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x]: Resetting the view in an element index to defaults should reset to the default view mode #16111

Open
MoritzLost opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@MoritzLost
Copy link
Contributor

What happened?

Description

As of Craft 5.5, it's possible to set a Default View Mode for all sources in element indexes. Clicking on Use defaults in the view dropdown resets all the visible columns and the sort order to the defaults defined for that source. But it will not reset the view mode to the selected default view mode.

Steps to reproduce

  1. Set the default view mode to cards for any entry source.
  2. Switch the view to table using the buttons next to the view menu on the upper right.
  3. Click on the view dropdown and click on Use defaults.
  4. The view will not reset to cards mode, but stay in table mode.

Expected behavior

Resetting the view to defaults should reset all view settings, including the view mode, to the default settings.

Actual behavior

The view mode is not reset along with all other view settings.

Craft CMS version

5.5.0.1

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@MoritzLost MoritzLost added the bug label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant