From 5d1a5ef4366e8e76626cc5005a8e4d1037c4e051 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Thu, 23 Nov 2006 03:01:16 +0000 Subject: [PATCH] incrementing qnum so that questions numbers in multi will be unique --- mod/survey/lib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 20dfbe8c95..3e97da9657 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -399,9 +399,10 @@ function survey_print_multi($question) { echo "id\" value=\"0\" checked=\"checked\" alt=\"0\" />"; $checklist["q$P$q->id"] = $numoptions; - } else { + } else { // yu : fix for MDL-7501, possibly need to use user flag as this is quite ugly. echo "$qnum"; + $qnum++; echo "$stripreferthat "; echo "$q->text"; for ($i=1;$i<=$numoptions;$i++) { @@ -419,7 +420,7 @@ function survey_print_multi($question) { } echo "id\" value=\"0\" checked=\"checked\" alt=\"0\" />"; $checklist["qP$q->id"] = $numoptions; - $checklist["q$q->id"] = $numoptions; + $checklist["q$q->id"] = $numoptions; } echo "\n"; } -- 2.39.5