From e5c5f52e8b6a156c360fa49b4204d7ff6658e302 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 21 Jan 2014 11:58:40 +0800 Subject: [PATCH 1/1] MDL-43670 quiz: improve code comments a little --- mod/quiz/backup/moodle2/restore_quiz_stepslib.php | 2 +- question/type/calculated/questiontype.php | 2 +- question/type/multianswer/edit_multianswer_form.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/quiz/backup/moodle2/restore_quiz_stepslib.php b/mod/quiz/backup/moodle2/restore_quiz_stepslib.php index 5637ac182c9..283ab4b9e79 100644 --- a/mod/quiz/backup/moodle2/restore_quiz_stepslib.php +++ b/mod/quiz/backup/moodle2/restore_quiz_stepslib.php @@ -235,7 +235,7 @@ class restore_quiz_activity_structure_step extends restore_questions_activity_st $data = (object)$data; - // Backwards compatibility for MDL-43670. + // Backwards compatibility for old field names (MDL-43670). if (!isset($data->questionid) && isset($data->question)) { $data->questionid = $data->question; } diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index 443af178dcd..9cf6fd2dd89 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -1705,7 +1705,7 @@ class qtype_calculated extends question_type { } $line++; $text .= "$qu->name"; - // TODO should not have quiz-specific code here. + // TODO MDL-43779 should not have quiz-specific code here. $nbofquiz = $DB->count_records('quiz_question_instances', array('questionid' => $qu->id)); $nbofattempts = $DB->count_records_sql(" SELECT count(1) diff --git a/question/type/multianswer/edit_multianswer_form.php b/question/type/multianswer/edit_multianswer_form.php index 6a803384b2a..b52e4d15668 100644 --- a/question/type/multianswer/edit_multianswer_form.php +++ b/question/type/multianswer/edit_multianswer_form.php @@ -63,7 +63,7 @@ class qtype_multianswer_edit_form extends question_edit_form { $this->used_in_quiz = false; if (isset($question->id) && $question->id != 0) { - // TODO should not have quiz-specific code here. + // TODO MDL-43779 should not have quiz-specific code here. $this->savedquestiondisplay = fullclone($question); $this->nb_of_quiz = $DB->count_records('quiz_question_instances', array('questionid' => $question->id)); $this->used_in_quiz = $this->nb_of_quiz > 0; -- 2.43.0