2.1.1 breaks selected multi-select order on a Taxonomy-field #171
Labels
status: actionable
Ready for work to begin
type: bug
Issue that causes incorrect or unexpected behavior
Description
After upgrading from 2.1.0 to 2.1.1 the order in a Taxonomy-field multiselect is not the same that has been specified on the UI.
We're using the Taxonomy field to show content on the frontend in the same order that the user has chosen on the field.
This works fine in 2.1.0 but not in 2.1.1.
The order is changed from whatever is in that field, to be alphabetical.
Most likely caused by 56aa0f0fce0b74be5b971a0c080493058f26a22f
Adding
fixes this.
Steps to reproduce
Set up a clean WordPress environment (did this with Local/LocalWP)
Install acf, wpgraphql, wpgraphql-acf
Import provided ACF Field Group(s).
Create 3 new post categories.
Add these newly created categories to a post in the "Taxonomy field" - multiselect (in a order that you can remember).
Use the following query to query for posts
You'll get the categories in a different order than you specified.
2.1.0 returns in the same order as specified on the UI.
PHP or JSON export of the ACF Field Group(s)
Additional context
No response
WPGraphQL Version
2.1.1
WPGraphQL For ACF Version
1.21.0
ACF (Advanced Custom Fields) Version. Free or Pro?
6.2.6.1 (demo reproduction on Free, bug noticed on Pro)
WordPress Version
6.4.3
PHP Version
8.1.23
Additional enviornment details
Reproduceable on a pure WordPress installation. No additional plugins installed.
Please confirm that you have searched existing issues in the repo.
Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.
The text was updated successfully, but these errors were encountered: