|
|
|
@ -947,12 +947,12 @@ class Category implements GradebookItem |
|
|
|
|
/** @var EvalLink|ExerciseLink $link */ |
|
|
|
|
foreach ($links as $link) { |
|
|
|
|
$link->setStudentList($this->getStudentList()); |
|
|
|
|
|
|
|
|
|
if ($session_id) { |
|
|
|
|
$link->set_session_id($session_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$linkres = $link->calc_score($stud_id, null); |
|
|
|
|
|
|
|
|
|
if ($session_id) { |
|
|
|
|
$link->set_session_id($session_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$linkres = $link->calc_score($stud_id, null); |
|
|
|
|
if (!empty($linkres) && $link->get_weight() != 0) { |
|
|
|
|
$students[$stud_id] = $linkres[0]; |
|
|
|
|
$linkweight = $link->get_weight(); |
|
|
|
@ -1048,10 +1048,10 @@ class Category implements GradebookItem |
|
|
|
|
/** @var EvalLink|ExerciseLink $link */ |
|
|
|
|
foreach ($links as $link) { |
|
|
|
|
$link->setStudentList($this->getStudentList()); |
|
|
|
|
|
|
|
|
|
if ($session_id) { |
|
|
|
|
$link->set_session_id($session_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ($session_id) { |
|
|
|
|
$link->set_session_id($session_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$linkres = $link->calc_score($stud_id, $type); |
|
|
|
|
if (!empty($linkres) && $link->get_weight() != 0) { |
|
|
|
|