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]: Order by custom fields groups entries by section #14821

Closed
olivierbon opened this issue Apr 16, 2024 · 4 comments
Closed

[5.x]: Order by custom fields groups entries by section #14821

olivierbon opened this issue Apr 16, 2024 · 4 comments
Assignees
Labels

Comments

@olivierbon
Copy link
Member

What happened?

Description

When querying multiple sections at once, (.section(['galaxies','planets'])), ordering by custom field returns a list of entries grouped by section.

Ordering by postDate, title works fine, problem only occurs with custom fields.

This works fine in Craft 4.

Craft CMS version

5+

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@olivierbon olivierbon added the bug label Apr 16, 2024
@timohinze
Copy link

thanks for reporting @olivierbon
btw: the same happens when you use two element types in one section

@i-just
Copy link
Contributor

i-just commented Apr 17, 2024

Thanks for all the info, Oli! It looks to be affecting MySQL and not PgSQL. Looking into it!

@brandonkelly brandonkelly self-assigned this Apr 19, 2024
@brandonkelly
Copy link
Member

Fixed for 5.1 via 798b9d7

@brandonkelly
Copy link
Member

Craft 5.1 is out with that fix.

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

4 participants