]> git.mjollnir.org Git - moodle.git/commitdiff
added more return tracking to scale links in Edit/Outcomes
authorskodak <skodak>
Tue, 31 Jul 2007 11:01:10 +0000 (11:01 +0000)
committerskodak <skodak>
Tue, 31 Jul 2007 11:01:10 +0000 (11:01 +0000)
grade/edit/outcome/index.php

index 5b3e274e15c9e2b46fd97b3820ad52851db92829..38106aaad65a34aa63c08b4e744edf06021e07f1 100644 (file)
@@ -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();
             }