-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.2
-
1
-
Team Hedgehog Sprint 1.3
-
Small
This was missed in MDL-74691 and needs a fix here. See this code:
https://github.com/moodle/moodle/blob/d5ed4a3184e8187edad0eae9cb290c4f5cea1a6b/enrol/lti/classes/local/ltiadvantage/task/sync_grades.php#L162
E.g.
$lineitemurl = $gradeservice->get_lineitemurl();
|
|
$servicedata = [
|
|
'lineitems' => $gradeservice->get_lineitemsurl()->out(false), |
|
'lineitem' => $lineitemurl ? $lineitemurl->out(false) : null, |
|
'scope' => $gradeservice->get_scopes(), |
|
];
|
This needs to handle lineitems the same way as it does lineitem. I.e. with an existence check before calling out() on it.
- has a non-specific relationship to
-
MDL-74691 Undefined index error in tool_launch service when only 'lineitem' property is present
-
- Closed
-