From: skodak <skodak>
Date: Tue, 31 Jul 2007 11:01:10 +0000 (+0000)
Subject: added more return tracking to scale links in Edit/Outcomes
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b4ff0358eaed357159bfe6b9d8c97722322cbfdd;p=moodle.git

added more return tracking to scale links in Edit/Outcomes
---

diff --git a/grade/edit/outcome/index.php b/grade/edit/outcome/index.php
index 5b3e274e15..38106aaad6 100644
--- a/grade/edit/outcome/index.php
+++ b/grade/edit/outcome/index.php
@@ -164,7 +164,9 @@ if ($outcomes = grade_outcome::fetch_all_global()) {
                 $caneditthisscale = has_capability('moodle/course:managescales', $context);
             }
             if ($caneditthisscale) {
-                $line[] = '<a href="'.$CFG->wwwroot.'/grade/edit/scale/edit.php?courseid='.$courseid.'&amp;id='.$scale->id.'">'.$scale->get_name().'</a>';
+                $url = $CFG->wwwroot.'/grade/edit/scale/edit.php?courseid='.$courseid.'&amp;id='.$scale->id;
+                $url = $gpr->add_url_params($url);
+                $line[] = '<a href="'.$url.'">'.$scale->get_name().'</a>';
             } else {
                 $line[] = $scale->get_name();
             }