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]: Craft Date column header not sortable by clicking on column header, but sortable from dropdown #15335

Closed
matthewstick opened this issue Jul 11, 2024 · 3 comments
Labels

Comments

@matthewstick
Copy link

What happened?

Description

There are some column headers like lightswitches and dates that aren't sortable fromt he column header. However, these are sortable by Craft if i click View -> Sort By -> Custom Field name in the top right.

I undersand entry fields you don't make sortable (I have another ticket for that). But this is different. These columns are actually sortable in Craft. Craft lets you sort them. Just you can't do it by clicking the column header. Craft 4 let you do this.

Steps to reproduce

  1. Click on a column header for a data or lightswitch field (probably more)

Expected behavior

  1. It should sort.

Actual behavior

  1. It does not sort.

Craft CMS version

5.X

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

I’m not able to reproduce that. “Date Created” and “Date Updated” columns are both clickable for me, like other sortable columns. What specific Craft version do you have installed? Are you getting any JavaScript errors on the page?

@matthewstick
Copy link
Author

Thank you @brandonkelly - I do not see any console errors. I'm running 5.2.5. I made a pretty detailed video, which I will now email to your support address. This screenshots the console and the entire process. Thanks!

@brandonkelly
Copy link
Member

brandonkelly commented Jul 15, 2024

Sorry, missed that this was a custom field.

This bug was fixed in 5.2.6 (#15297).

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

2 participants