Closed (fixed)
Project:
Taxonomy Lineage
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2007 at 10:56 UTC
Updated:
28 Feb 2008 at 12:55 UTC
The function that lookup the parent does never return it, instead return an empty array:
// recurse until there are no more parents.
function _lineage_get_parent_lineage($tid) {
if (!$tid)
return array();
$term = db_fetch_object(db_query("SELECT td.tid, td.name, td.weight, th.parent FROM {term_hierarchy} th LEFT JOIN {term_data} td ON td.tid = th.tid WHERE td.tid = '%d'", $tid));if (!$term->tid)
return $ret;$ret = _lineage_get_parent_lineage($term->parent);
$ret['base'] .= lineage_string($term);
$ret['depth'] += 1;
- return array();
+ return $ret;}
Comments
Comment #1
bago commentedI see in the current version this has been fixed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.