Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In a recent checkin, Views has been changed to force the results array of a view to have numeric keys. Currently, EFQ returns the results array with the entity id as key. I suggest that this behavior be changed, because it will not longer have any use starting from the next Views release.
My suggestion is to add entity_id to each entity, just like entity_type is added now.
See http://drupalcode.org/project/views.git/commit/d00b08378197aa27e80567a1b...
Comment | File | Size | Author |
---|---|---|---|
#1 | efq_views-entity-id-1704612-1.patch | 1.35 KB | Jorrit |
Comments
Comment #1
Jorrit CreditAttribution: Jorrit commentedPlease see the patch.
Comment #2
chx CreditAttribution: chx commentedThanks a lot for bringing the issue to my attention and fixing the query plugin. I committed this and also fixed the tests which used the keys of $views->result.
Comment #3
Jorrit CreditAttribution: Jorrit commentedThanks for giving the git attribution, that doesn't happen too often.