From 752582564884af9e34665b04a7e5e42e51962058 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Thu, 2 Feb 2012 10:37:59 +0530 Subject: [PATCH] MDL-26384 Tags Fixed redirect issue when editing is toggled --- tag/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tag/index.php b/tag/index.php index 3a993df95ee..5525f0411c8 100644 --- a/tag/index.php +++ b/tag/index.php @@ -48,7 +48,7 @@ if ($tagname) { } else if ($tagid) { $tag = tag_get('id', $tagid, '*'); } - +unset($tagid); if (empty($tag)) { redirect($CFG->wwwroot.'/tag/search.php'); } @@ -68,7 +68,7 @@ $title = get_string('tag', 'tag') .' - '. $tagname; $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')); -- 2.11.4.GIT