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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
1.2 KB

This changes the two queries accordingly.