Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-26384 Tags Fixed redirect issue when editing is toggled

  • Loading branch information...
commit f167f79d31b58579be504b6f8a68eac7616eaeba 1 parent a1063d9
@ankitagarwal ankitagarwal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tag/index.php
View
4 tag/index.php
@@ -48,7 +48,7 @@
} else if ($tagid) {
$tag = tag_get('id', $tagid, '*');
}
-
+unset($tagid);
if (empty($tag)) {
redirect($CFG->wwwroot.'/tag/search.php');
}
@@ -68,7 +68,7 @@
$button = '';
if ($PAGE->user_allowed_editing() ) {
- $button = $OUTPUT->edit_button(new moodle_url("$CFG->wwwroot/tag/index.php", array('id' => $tagid)));
+ $button = $OUTPUT->edit_button(new moodle_url("$CFG->wwwroot/tag/index.php", array('id' => $tag->id)));
}
$PAGE->navbar->add(get_string('tags', 'tag'), new moodle_url('/tag/search.php'));
Please sign in to comment.
Something went wrong with that request. Please try again.