MDL-61153 lesson: Inconsistent column sizing in detailed statistics
authorMihail Geshoski <mihail@moodle.com>
Thu, 4 Jan 2018 07:46:11 +0000 (15:46 +0800)
committerMihail Geshoski <mihail@moodle.com>
Thu, 4 Jan 2018 07:46:11 +0000 (15:46 +0800)
mod/lesson/report.php

index 7e95ae2..a5f5eaf 100644 (file)
@@ -304,12 +304,10 @@ if ($action === 'delete') {
         $table->attributes['class'] = '';
     }
 
         $table->attributes['class'] = '';
     }
 
-
-    $table->align = array('left', 'left');
-    $table->size = array('70%', null);
-    $table->attributes['class'] = 'compacttable generaltable form-inline';
-
     foreach ($answerpages as $page) {
     foreach ($answerpages as $page) {
+        $table->align = array('left', 'left');
+        $table->size = array('70%', null);
+        $table->attributes['class'] = 'compacttable generaltable form-inline';
         unset($table->data);
         if ($page->grayout) { // set the color of text
             $fontstart = "<span class=\"dimmed\">";
         unset($table->data);
         if ($page->grayout) { // set the color of text
             $fontstart = "<span class=\"dimmed\">";