Closed (duplicate)
Project:
User Points
Version:
7.x-1.x-dev
Component:
Code: userpoints
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Mar 2013 at 20:40 UTC
Updated:
18 Mar 2013 at 20:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| userpoints-txn_views_wrong_field_relate_node.patch | 855 bytes | jaimealsilva |
Comments
Comment #2
berdirThis was already fixed in #1335956: I have entity as 'node' and entity_id as node ids. How to use this to show [node:title] field in Views?