Merge branch 'MDL-29815' of git://github.com/timhunt/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 25 Oct 2011 15:43:51 +0000 (17:43 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 25 Oct 2011 15:43:51 +0000 (17:43 +0200)
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,