Commit 826ae5ac authored by webchick's avatar webchick

Issue #1041906 by Monochrome, bobodrone, ELC, ctibor, DamienMcKenna: Fixed...

Issue #1041906 by Monochrome, bobodrone, ELC, ctibor, DamienMcKenna: Fixed Taxonomy term menu link title overrides term page title.
parent ecfdad82
......@@ -1345,8 +1345,7 @@ class MenuBreadcrumbTestCase extends MenuWebTestCase {
$tree += array(
$link['link_path'] => $link['link_title'],
);
// @todo Normally, you'd expect $term->name as page title here.
$this->assertBreadcrumb($link['link_path'], $trail, $link['link_title'], $tree);
$this->assertBreadcrumb($link['link_path'], $trail, $term->name, $tree);
$this->assertRaw(check_plain($parent->title), 'Tagged node found.');
// Additionally make sure that this link appears only once; i.e., the
......
......@@ -14,6 +14,9 @@
* The page content.
*/
function taxonomy_term_page($term) {
// Assign the term name as the page title.
drupal_set_title($term->name);
// Build breadcrumb based on the hierarchy of the term.
$current = (object) array(
'tid' => $term->tid,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment