Skip to content

Commit 4cc98a7

Browse files
authored
CTP-3686: allocatable undefined (#3)
1 parent d04b5e8 commit 4cc98a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/models/submission.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,6 +1222,7 @@ private function is_submission_on_behalf() {
12221222

12231223
public function get_submissions_in_sample() {
12241224
assessment_set_membership::fill_pool_coursework($this->courseworkid);
1225+
$allocatable = $this->get_allocatable();
12251226
$records = isset(assessment_set_membership::$pool[$this->courseworkid]['allocatableid-allocatabletype'][$allocatable->id . '-' . $allocatable->type()]) ?
12261227
assessment_set_membership::$pool[$this->courseworkid]['allocatableid-allocatabletype'][$allocatable->id . '-' . $allocatable->type()] : [];
12271228
return $records;

0 commit comments

Comments
 (0)