Merge branch 'MDL-29815' of git://github.com/timhunt/moodle
[moodle.git] / question / engine / datalib.php
index 2b1c6ad..cdcaf8f 100644 (file)
@@ -367,7 +367,9 @@ GROUP BY
     qa.questionid,
     q.name,
     q.id,
-    summarystate
+    CASE qas.state
+        {$this->full_states_to_summary_state_sql()}
+    END
 
 ORDER BY
     qa.slot,