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.
The purpose of the module is to
count the number of nodereferences to a particular node.
However the query in nodereference_count_get_count() is incorrect, instead of counting the records that point TO the node, they count the records pointing FROM the node, i.e. they check %alias.entity_id == nid
when they should really be checking $db[0]['column'] == $nid
.
Comment | File | Size | Author |
---|---|---|---|
#1 | nodereference_count-n2385637-1.patch | 1.2 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThis changes the two queries accordingly.