MDL-41757 quiz statistics : limit subq and variant stat rows
[moodle.git] / mod / quiz / report / statistics / statistics_table.php
index c295e51..1449616 100644 (file)
@@ -138,7 +138,7 @@ class quiz_statistics_table extends flexible_table {
     protected function col_number($questionstat) {
         $number = $questionstat->question->number;
 
-        if ($questionstat->subquestion) {
+        if (isset($questionstat->subqdisplayorder)) {
             $number = $number . '.'.$questionstat->subqdisplayorder;
         }
 
@@ -213,6 +213,10 @@ class quiz_statistics_table extends flexible_table {
             $name = html_writer::tag('div', $name, array('class' => 'dubious'));
         }
 
+        if (!empty($questionstat->minmedianmaxnotice)) {
+            $name = $questionstat->minmedianmaxnotice . '<br />' . $name;
+        }
+
         return $name;
     }