|
[bug] broken taxonomy_overview() function: msg#00611php.drupal.devel
Project: Drupal Version: cvs Component: taxonomy.module Category: bug reports Priority: normal Assigned to: spiderman Reported by: spiderman Updated by: weitzman@xxxxxxxxxxxx -Status: patch +Status: fixed 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) weitzman@xxxxxxxxxxxx Previous comments: ------------------------------------------------------------------------ February 8, 2004 - 21:48 : spiderman 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. [?php --- ../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) { ?] ------------------------------------------------------------------------ February 8, 2004 - 22:22 : weitzman@xxxxxxxxxxxx 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. ------------------------------------------------------------------------ February 12, 2004 - 09:38 : spiderman ok here's a new patch, against today's cvs version of taxonomy.module: [?php --- 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) { ?] ------------------------------------------------------------------------ February 12, 2004 - 14:06 : Dries Please attach your patch using the 'file attachment' form. Thanks. ------------------------------------------------------------------------ February 12, 2004 - 14:06 : Dries Please attach your patch using the 'file attachment' form. Thanks. How can we trigger/reproduce this problem? -- View: http://drupal.org/node/view/5740 Edit: http://drupal.org/project/comments/add/5740 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [bug] Title module screws up preformatted code snippets: 00611, weitzman |
|---|---|
| Next by Date: | [feature] Book module configuration options: 00611, weitzman |
| Previous by Thread: | [bug] broken taxonomy_overview() functioni: 00611, Dries |
| Next by Thread: | [bug] Don't automatically capitalize page title: 00611, weitzman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |