From 031c8ae5a058d6f3cee72e7192ad2b4cc1fe3547 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 17 Aug 2006 21:34:39 +0000 Subject: [PATCH] Bug #6276 - Multiple questions not showing up from scale page; merged from MOODLE_16_STABLE --- mod/survey/report.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/survey/report.php b/mod/survey/report.php index 69f717d914..4e1b968f45 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -7,10 +7,14 @@ $id = required_param('id', PARAM_INT); // Course Module ID $action = optional_param('action', '', PARAM_ALPHA); // What to look at - $qid = optional_param('qid', 0, PARAM_INT); // Question ID + $qid = optional_param('qid', 0, PARAM_RAW); // Question IDs comma-separated list $student = optional_param('student', 0, PARAM_INT); // Student ID $notes = optional_param('notes', '', PARAM_RAW); // Save teachers notes + $qids = explode(',', $qid); + $qids = clean_param($qids, PARAM_INT); + $qid = implode (',', $qids); + if (! $cm = get_coursemodule_from_id('survey', $id)) { error("Course Module ID was incorrect"); } -- 2.39.5