Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Patch and title say it all, many thanks!
Comment | File | Size | Author |
---|---|---|---|
#5 | entityreference-drupal_static_reference-2175949-5.patch | 1.46 KB | Jorrit |
Comments
Comment #1
AndyF CreditAttribution: AndyF commentedpatch attached
Comment #2
amitaibuCommitted, thanks.
Comment #3
amitaibuSorry, had to revert this patch, as upon clear cache in
entityreference_field_load()
no behaviors are loaded, thus$handler->load()
isn't invoked.Comment #4
DamienMcKennaThat suggests another problem elsewhere - &drupal_static() is the recommended usage:
https://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/drup...
Comment #5
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commentedThe bug is caused by this line:
it should read:
(except, this line already exists so the original line can be removed altogether)
Because of this difference, sometimes empty arrays are added to the $object_cache leading to bad results.
The attached patch fixes this problem.
Comment #6
Jorrit CreditAttribution: Jorrit at nCode for DOM Digital Online Media GmbH commented