Closed (fixed)
Project:
Similar By Terms
Version:
6.x-1.18
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2009 at 17:20 UTC
Updated:
11 Feb 2009 at 18:20 UTC
the function similarterms_list($vocid = 0, $nid = NULL) is ignoring $nid >> if you call this makes the funktion useless for advanced themeing. Easy fix: add && !$nid
simiarlterms.module
function similarterms_list($vocid = 0, $nid = NULL) {
$nodes = array();
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
}
...
}
If $nid is given use $nid
function similarterms_list($vocid = 0, $nid = NULL) {
$nodes = array();
if (arg(0) == 'node' && is_numeric(arg(1)) && !$nid) {
$nid = arg(1);
}
...
}
Comments
Comment #1
rmiddle commentedWill be fixed in next release. This is the 1st time someone has actually used that I guess.
Thanks
Robert
Comment #2
rmiddle commentedOK committed to both branchs will be in .19
Thanks
Robert