Upgrade to 4.6

jdmquin - May 2, 2005 - 05:52
Project:Vocabulary List
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Attached is a patch that upgrades vocabulary_list to work in Drupal 4.6. I simply made the same changes to the functions that were made in the 4.6 version of the taxonomy.module. I also found the issue with the vocabulary page showing nodes from the taxonomy term with the same id even when it was in another vocabulary. If you are using 4.5 make the following change in the _vocabulary_select_nodes to fix this issue:

$descendant_tids[] = array_merge(array($vid), array_map('_taxonomy_get_tid_from_term', $tree));
/* change to */
$descendant_tids[] = array_map('_taxonomy_get_tid_from_term', $tree);

This removes the vocabulary id from the list of taxonomy ids to display.

Thanks

JJ

AttachmentSize
vocabulary_list.patch14.28 KB

#1

leafish_paul - April 12, 2006 - 15:01
Status:needs review» needs work
 
 

Drupal is a registered trademark of Dries Buytaert.