Active
Project:
Entity reference
Version:
7.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2023 at 19:06 UTC
Updated:
5 Sep 2023 at 16:43 UTC
Jump to comment: Most recent
My entityreference field shows users with particular roles; they're ordered by UID by default. I sort them by "User: Name" for better UX. It stops working after updating from 7.x-1.5 to 7.x-1.8, defaulting back to the UID default sort.
Comments
Comment #2
joseph.olstadHello, thanks for reporting, please test the available patch and report the version of PHP you're using and report success results.
The patch is here:
#3349989-6: Field reference do not use order (asc,desc) that done in views reference
Comment #3
joseph.olstadI would like some more reviews of the fix before putting it in. Particularly testing results with PHP 8.2
Comment #4
jvogt commentedThis is still an issue for me in 7.x-1.9 when the field is referencing User entities. Tested on both php 7.4 and 8.1. It ignores both "A field attached to this entity" and "A property of the base table of this entity."
Comment #5
joseph.olstad@jvogt what does this say?
drush pml | grep entityreference -iComment #6
jvogt commentedWell, I downgraded back to 7.x-1.6, but after running
drush dl entityreference, the output ofdrush pml | grep entityreference -iis: