i think this bug has existed since 4.3.0, where the taxonomy_overview function does not generate the table data correctly for vocabularies assigned to multiple node types. this patch corrects the problem.

--- ../drupal-4.3.2/modules/taxonomy.module     2003-10-22 09:03:32.000000000 -0400
+++ modules/taxonomy.module     2004-02-08 21:45:49.000000000 -0500
@@ -277,7 +277,13 @@
 
   foreach ($vocabularies as $vocabulary) {
     $links = array();
-    $rows[] = array($vocabulary->name, array("data" => module_invoke($vocabulary->nodes, "node", "name"), "align" => "center"), l(t("edit vocabulary"), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t("add term"), "admin/taxonomy/add/term/$vocabulary->vid"), l(t("preview form"), "admin/taxonomy/preview/vocabulary/$vocabulary->vid"));
+
+    # build a list of node types
+    $types = array();
+    foreach (explode(",",$vocabulary->nodes) as $type) {
+       $types[] = module_invoke($type,"node","name") . $sep;
+    }
+    $rows[] = array($vocabulary->name, array("data" => implode(",",$types), "align" => "center"), l(t("edit vocabulary"), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t("add term"), "admin/taxonomy/add/term/$vocabulary->vid"), l(t("preview form"), "admin/taxonomy/preview/vocabulary/$vocabulary->vid"));
 
     $tree = taxonomy_get_tree($vocabulary->vid);
     if ($tree) {

Comments

moshe weitzman’s picture

This is indeed a bug. However, the review team only considers patches against CVS Drupal. The node system has changed enough that your patch no longer applies. Please consider resubmitting.

spiderman’s picture

ok here's a new patch, against today's cvs version of taxonomy.module:

--- drupal/modules/taxonomy.module      Thu Feb 12 09:33:59 2004
+++ patch/taxonomy.module       Thu Feb 12 09:37:34 2004
@@ -284,7 +284,14 @@
     foreach(explode(",", $vocabulary->nodes) as $type) {
       $types[] = node_invoke($type, "node_name");
     }
-    $rows[] = array($vocabulary->name, array("data" => implode(", ", $types), "align" => "center"), l(t("edit vocabulary"), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t("add term"), "admin/taxonomy/add/term/$vocabulary->vid"), l(t("preview form"), "admin/taxonomy/preview/vocabulary/$vocabulary->vid"));
+
+    # build a list of node types
+    $types = array();
+    foreach (explode(",",$vocabulary->nodes) as $type) {
+       $types[] = module_invoke($type,"node","name") . $sep;
+    }
+    $rows[] = array($vocabulary->name, array("data" => implode(",",$types), "align" => "center"), l(t("edit vocabulary"), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t("add term"), "admin/taxonomy/add/term/$vocabulary->vid"), l(t("preview form"), "admin/taxonomy/preview/vocabulary/$vocabulary->vid"));
+
  
     $tree = taxonomy_get_tree($vocabulary->vid);
     if ($tree) {
dries’s picture

Please attach your patch using the 'file attachment' form. Thanks.

dries’s picture

Please attach your patch using the 'file attachment' form. Thanks. How can we trigger/reproduce this problem?

moshe weitzman’s picture

at some point, this bug on the taxonomy admin page was fixed ... the list of node types associated with each vocab was wrong (in the case of multiple node types)

Anonymous’s picture