Permalink
Browse files

MDL-26384 Tags Fixed redirect issue when editing is toggled

  • Loading branch information...
1 parent baa5cd8 commit 752582564884af9e34665b04a7e5e42e51962058 @ankitagarwal ankitagarwal committed Feb 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 tag/index.php
View
@@ -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'));

0 comments on commit 7525825

Please sign in to comment.