From: martin Date: Wed, 14 Aug 2002 06:13:20 +0000 (+0000) Subject: Show scale title when looking at questions from a scale X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=000331f51921b3dca6815db6d36efffab47780c9;p=moodle.git Show scale title when looking at questions from a scale --- diff --git a/mod/survey/report.php b/mod/survey/report.php index 0471c5382a..31ec19aa49 100644 --- a/mod/survey/report.php +++ b/mod/survey/report.php @@ -142,6 +142,12 @@ print_heading($strselectedquestions); + if ($scale = get_records("survey_questions", "multi", "$qid")) { + $scale = array_pop($scale); + echo "
"; + print_heading($scale->text); + } + } else { // get all top-level questions $questions = get_records_sql("SELECT * FROM survey_questions WHERE id in ($survey->questions)"); $questionorder = explode(",", $survey->questions);