diff --git a/classes/models/submission.php b/classes/models/submission.php index c6b6a601..2b848ffd 100644 --- a/classes/models/submission.php +++ b/classes/models/submission.php @@ -1222,6 +1222,7 @@ private function is_submission_on_behalf() { public function get_submissions_in_sample() { assessment_set_membership::fill_pool_coursework($this->courseworkid); + $allocatable = $this->get_allocatable(); $records = isset(assessment_set_membership::$pool[$this->courseworkid]['allocatableid-allocatabletype'][$allocatable->id . '-' . $allocatable->type()]) ? assessment_set_membership::$pool[$this->courseworkid]['allocatableid-allocatabletype'][$allocatable->id . '-' . $allocatable->type()] : []; return $records;