Merge branch 'wip-MDL-58697-master-assigngrading' of git://github.com/adamann2/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 10 Apr 2018 13:53:37 +0000 (15:53 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 10 Apr 2018 13:53:37 +0000 (15:53 +0200)
mod/assign/gradingtable.php

index 0277e6d..ad5ba63 100644 (file)
@@ -1042,7 +1042,10 @@ class assign_grading_table extends table_sql implements renderable {
 
         $group = false;
         $submission = false;
-        $this->get_group_and_submission($row->id, $group, $submission, -1);
+
+        if ($instance->teamsubmission) {
+            $this->get_group_and_submission($row->id, $group, $submission, -1);
+        }
 
         if ($instance->teamsubmission && !$group && !$instance->preventsubmissionnotingroup) {
             $group = true;