Active
Project:
NodeReferrer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2010 at 12:24 UTC
Updated:
20 Aug 2010 at 20:50 UTC
If I create view of taxonomy type and load all nodes that are tagged with particular tag and then add fields to show nodes that refer to oned relationship filters there is 0 results or field is empty.
Comments
Comment #1
henrijs.seso commentedmarking this as duplicate, but its actually another report of same bug. #848196: Show other nodes that also refer to a node
using latest -dev and views2
Comment #2
henrijs.seso commentedfunction referrers($nid, $fields, $types = NULL)has no $nid set if using relationships in file nodereferrer_view_handler_field.incComment #3
henrijs.seso commentedthis function
function render($values)receives nid if view type is node (works) and uid if user and tid if taxonomy (fails), actually it should receive nid in all cases because it should receive node nids from relationships :(at least i think so... im not really php expert
Comment #4
andypostinteresting bug
Comment #5
henrijs.seso commentedthis solution works but it is uber ugly and probably totally in wrong place :) someone smarter needed to fix this...
in
function render($values)found in file nodereferrer_view_handler_field.inc this lineif replaced by this code
works.
As far as I understand, NodeReferrer field does not receive properly formated info from argument and fail in all kinds of views except for 'node'. Help needed with this...
some more information, maybe useful
displaying items of type Node - value of $values (WORKS)
displaying items of type User - value of $values (FAILS)
displaying items of type Term - value of $values (FAILS)
Comment #6
andypostSeems reasonable, could you provide a steps to reproduce this?
Suppose we need to test this with more then one relation used, I think
node_term_node_nidname could be changed and value should be found somewhere else