Closed (fixed)
Project:
Drupal core
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Feb 2004 at 02:48 UTC
Updated:
29 Feb 2004 at 14:20 UTC
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
Comment #1
moshe weitzman commentedThis 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.
Comment #2
spidermanok here's a new patch, against today's cvs version of taxonomy.module:
Comment #3
dries commentedPlease attach your patch using the 'file attachment' form. Thanks.
Comment #4
dries commentedPlease attach your patch using the 'file attachment' form. Thanks. How can we trigger/reproduce this problem?
Comment #5
moshe weitzman commentedat 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)
Comment #6
(not verified) commented