You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a student receive a 0 and I pass the score back to Canvas, nothing actually gets passed back, making it look like it is something that needs to be graded (Bug report posted here: ).
Hi,
When a student receive a 0 and I pass the score back to Canvas, nothing actually gets passed back, making it look like it is something that needs to be graded (Bug report posted here: ).
As a possible fix, in https://github.com/IMSGlobal/lti-1-3-php-library/blob/master/src/lti/LTI_Grade.php:
$score_given = 0 + $this->score_given;
$grade_array = array_filter([
"scoreGiven" => $score_given,
"scoreMaximum" => 0 + $this->score_maximum,
"comment" => $this->comment,
"activityProgress" => $this->activity_progress,
"gradingProgress" => $this->grading_progress,
"timestamp" => $this->timestamp,
"userId" => $this->user_id,
"submissionReview" => $this->submission_review,
]);
if (!$score_given) {
$grade_array['scoreGiven'] = 0;
}
The text was updated successfully, but these errors were encountered: