Permalink
Browse files

MDL-26384 Tags Fixed redirect issue when editing is toggled

  • Loading branch information...
1 parent 4d2f89f commit 6e1cf8fde869794b08467cc18df1d1fae60ce96e @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 6e1cf8f

Please sign in to comment.