In {taxonomy_hierarchy}, top-level terms have entries with the parent ID set to 0. The recursive term update function in this module, lineage_update_term_r(), attempts to fetch data for this "fake" parent term, which results a lineage being added for term 0; subsequently duplicate, malformed lineages like the following are created for each term:
10Last term in table
10
10Some root-level term
10Last term in table
10
10Some root-level term
12Some child term
The attached patch resolves this issue by discarding these "empty" data rows for terms that don't exist. (Note: I've made the patch against 6.x-1.0 release instead of the current dev build or HEAD because, somehow, the release is nine months newer than either?)
| Comment | File | Size | Author |
|---|---|---|---|
| lineage_6_1-0_fix_parent_zero.patch | 701 bytes | xjm |
Comments
Comment #1
xjmComment #2
agileware commentedCommitted