Closed (duplicate)
Project:
References
Version:
7.x-2.x-dev
Component:
Code: user_reference
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2011 at 13:15 UTC
Updated:
5 Dec 2011 at 14:02 UTC
When using a user_reference field as a relationship in a view (or in the discovered case, as a relationship on a relationship), the column name used by the views query is incorrect.
That is because it looks for "uid" as the column name instead of, e.g, "field_friend_uid".
I've attached my user_reference.module which is fixed, but the change is fairly simple.
Line 869 (old) : 'field' => 'uid',
Line 869 (new): 'field' => $field['field_name'] . '_uid',
Verified working in a live situation, but not tested beyond that.
| Comment | File | Size | Author |
|---|---|---|---|
| user_reference.module.txt | 30.29 KB | richthegeek |
Comments
Comment #1
richthegeek commentedDuplicate of the following issue which has patch available / to be committed: http://drupal.org/node/1275096