MDL-51771 question engine: fix typo in SQL
authorTim Hunt <T.J.Hunt@open.ac.uk>
Sun, 18 Oct 2015 15:03:29 +0000 (16:03 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Sun, 18 Oct 2015 15:03:29 +0000 (16:03 +0100)
Thanks to Pete at learningpool.com for finding thsi bug.

question/engine/datalib.php

index 55be766..c9e1884 100644 (file)
@@ -306,7 +306,7 @@ class question_engine_data_mapper {
         $records = $this->db->get_recordset_sql("
 SELECT
     quba.contextid,
-    COALLESCE(q.qtype, 'missingtype') AS qtype,
+    COALESCE(q.qtype, 'missingtype') AS qtype,
     qas.id AS attemptstepid,
     qas.questionattemptid,
     qas.sequencenumber,