diff --git a/src/lti/LTI_Assignments_Grades_Service.php b/src/lti/LTI_Assignments_Grades_Service.php index ffd1cde0..47fc1a95 100644 --- a/src/lti/LTI_Assignments_Grades_Service.php +++ b/src/lti/LTI_Assignments_Grades_Service.php @@ -19,6 +19,8 @@ public function put_grade(LTI_Grade $grade, LTI_Lineitem $lineitem = null) { if ($lineitem !== null && empty($lineitem->get_id())) { $lineitem = $this->find_or_create_lineitem($lineitem); $score_url = $lineitem->get_id(); + } else if($lineitem !== null && !empty($lineitem->get_id())) { + $score_url = $lineitem->get_id(); } else if ($lineitem === null && !empty($this->service_data['lineitem'])) { $score_url = $this->service_data['lineitem'] ; } else {