- Issue created by @uv516
- 🇩🇪Germany cialog
I still use Version 1.7 and the sorting in the field widget is gone. (the view is still good and well sorted). Could it be that a core update is the cause ?
- 🇩🇰Denmark uv516 Denmark
Ok. If I (in the fields UI) use Entity selection -> Mode -> Simple (with optional filter by bundle) and set it to the bundle, the list is sorted correctly.
But if I use Entity selection -> Mode -> Views: Filter by an entity reference view, the list is unsorted. As mentioned the admin views list is sortet correctly.
The problem is the same in alle entity reference fields on the site.
I have other sites without the probelm (as far as I know).
Could it be a core stuff or could it be a code errors in my code? What could smash the sort? - 🇨🇦Canada psaleks
Same issue as Field reference do not use order (asc,desc) 🐛 Field reference do not use order (asc,desc) that done in views reference Fixed
Problem with Problem with incorrect optimization in EntityReference_SelectionHandler_Views.class.php. v7.x-1.8 from
line 142 - 🇩🇰Denmark uv516 Denmark
EXACTLY!
I did as descriped as referenced in #4 🐛 Field reference do not use order (asc,desc) that done in views reference Fixed !
Now it works again.I think that the team should look at the code again. It is fine to save performance, but not at the expense of sorting.
- Status changed to Needs review
over 1 year ago 9:34pm 31 March 2023 - 🇭🇺Hungary danyg Budapest
It's a duplicated issue, patch is available at https://www.drupal.org/project/entityreference/issues/3349989 🐛 Field reference do not use order (asc,desc) that done in views reference Fixed
- Status changed to Closed: duplicate
over 1 year ago 4:57am 10 April 2023