Excluding current node doesn't work?

nath - August 1, 2008 - 09:45
Project:Related Block
Version:5.x-0.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:spiderman
Status:closed
Description

It seems the exclusion of the current node from the block doesn't work. At least on our site, the current node is always the top listed in the block.

#1

nath - August 1, 2008 - 10:39

After further investigation, it cannot work, as it compares the sid with the nid - and those are different for the same node.

#2

nath - August 7, 2008 - 09:18

I think, one has to look, what the nid of the node behind the sid is. We don't have that nid at the time of comparing. But what to do? Doing a node_load is probably overkill, but is there a simpler way?

#3

nath - October 9, 2008 - 12:33

Any news here?

#4

spiderman - January 15, 2009 - 03:03
Assigned to:Anonymous» spiderman

This should also be a relatively easy thing to accomplish, but it sounds like it might require rethinking how the query is built in the first place. I'll try to look into this shortly.

#5

spiderman - January 19, 2009 - 13:59
Status:active» fixed

Actually, according to the revision log here: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/related_blo..., this was fixed as of revision 1.7.

Please re-open with further details of how to reproduce if this is still happening.

#6

spiderman - January 19, 2009 - 14:00

Actually, according to the revision log here: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/related_blo..., this was fixed as of revision 1.7.

Please re-open with further details of how to reproduce if this is still happening.

#7

System Message - February 2, 2009 - 14:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.