Issue #1041906 by Monochrome, bobodrone, ELC, ctibor, DamienMcKenna: Fixed Taxonomy term menu link title overrides term page title.

8.0.x
webchick 2011-10-17 09:04:09 -07:00
parent ecfdad822b
commit 826ae5ac4e
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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,