On userpoints_views_data() the relation for the userpoints_txn.entity_id field to node.nid field uses the key 'field' instead of 'base field'. That causes views to create the wrong condition userpoints_txn.nid = node.nid which fails.

A patch is attached to correct this issue.

Also, the $data['userpoints_txn']['txn_id'] declaration is placed inside the $data['userpoints_txn']['operation'] that is also corrected by the patch.

Comments

Status: Needs review » Needs work

The last submitted patch, userpoints-txn_views_wrong_field_relate_node.patch, failed testing.

berdir’s picture