From 68bf577bdf7cfa7feff73a332e3f2b1ce165dd16 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Mon, 11 Oct 2010 06:23:03 +0000 Subject: [PATCH] rating MDL-24513 made help_icon_scale() flip the scale id so that a database look up will work --- lib/outputrenderers.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 306a1d85a7c..8978e624963 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -1704,7 +1704,9 @@ class core_renderer extends renderer_base { $icon = $this->pix_icon('help', get_string('scales'), 'moodle', array('class'=>'iconhelp')); - $link = new moodle_url('/course/scales.php', array('id' => $courseid, 'list' => true, 'scaleid' => $scale->id)); + $scaleid = abs($scale->id); + + $link = new moodle_url('/course/scales.php', array('id' => $courseid, 'list' => true, 'scaleid' => $scaleid)); $action = new popup_action('click', $link, 'ratingscale'); return html_writer::tag('span', $this->action_link($link, $icon, $action), array('class' => 'helplink'));