Skip to content

Commit 606158c

Browse files
committed
Merge branch 'MDL-79863-ordering' of https://github.com/Chocolate-lightning/moodle
2 parents fedeefa + 135ed5b commit 606158c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+8563
-9
lines changed

lib/plugins.json

+1
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@
401401
"multianswer",
402402
"multichoice",
403403
"numerical",
404+
"ordering",
404405
"random",
405406
"randomsamatch",
406407
"shortanswer",

question/format/gift/format.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ public function readquestion($lines) {
281281
// Determine question type.
282282
$question->qtype = null;
283283

284+
// Extract any idnumber and tags from the comments.
285+
list($question->idnumber, $question->tags) = $this->extract_idnumber_and_tags_from_comment($comments);
286+
284287
// Give plugins first try.
285288
// Plugins must promise not to intercept standard qtypes
286289
// MDL-12346, this could be called from lesson mod which has its own base class =(.
@@ -325,10 +328,6 @@ public function readquestion($lines) {
325328
}
326329
}
327330

328-
// Extract any idnumber and tags from the comments.
329-
list($question->idnumber, $question->tags) =
330-
$this->extract_idnumber_and_tags_from_comment($comments);
331-
332331
if (!isset($question->qtype)) {
333332
$giftqtypenotset = get_string('giftqtypenotset', 'qformat_gift');
334333
$this->error($giftqtypenotset, $text);

question/type/edit_question_form.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,11 @@ protected function data_preprocessing_combined_feedback($question,
802802

803803
/**
804804
* Perform the necessary preprocessing for the hint fields.
805-
* @param object $question the data being passed to the form.
806-
* @return object $question the modified data.
805+
*
806+
* @param object $question The data being passed to the form.
807+
* @param bool $withclearwrong Clear wrong hints.
808+
* @param bool $withshownumpartscorrect Show number correct.
809+
* @return stdClass The modified data.
807810
*/
808811
protected function data_preprocessing_hints($question, $withclearwrong = false,
809812
$withshownumpartscorrect = false) {

question/type/ordering/amd/build/drag_reorder.min.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

question/type/ordering/amd/build/drag_reorder.min.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)