Commit 68ee4617 authored by alexpott's avatar alexpott

Issue #1998258 by nick_schuch: Fixed All term href's on overview page are...

Issue #1998258 by nick_schuch: Fixed All term href's on overview page are 'taxonomy/term/()' instead of 'taxonomy/term/1'.
parent f2d710c6
......@@ -328,6 +328,10 @@ function testTermInterface() {
$this->assertText($edit['name'], 'The randomly generated term name is present.');
$this->assertLink(t('edit'));
// Check the term link can be clicked through to the term page.
$this->clickLink($edit['name']);
$this->assertResponse(200, 'Term page can be accessed via the listing link.');
// View the term and check that it is correct.
$this->drupalGet('taxonomy/term/' . $term->id());
$this->assertText($edit['name'], 'The randomly generated term name is present.');
......
......@@ -245,7 +245,7 @@ function taxonomy_overview_terms($form, &$form_state, Vocabulary $vocabulary) {
'#prefix' => isset($term->depth->value) && $term->depth->value > 0 ? theme('indentation', array('size' => $term->depth->value)) : '',
'#type' => 'link',
'#title' => $term->label(),
'#href' => "taxonomy/term/$term->id()",
'#href' => "taxonomy/term/" . $term->id(),
);
if ($vocabulary->hierarchy != TAXONOMY_HIERARCHY_MULTIPLE && count($tree) > 1) {
$parent_fields = TRUE;
......
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