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 |
Jump to:
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
After further investigation, it cannot work, as it compares the sid with the nid - and those are different for the same node.
#2
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
Any news here?
#4
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
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
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
Automatically closed -- issue fixed for 2 weeks with no activity.