-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
We are observing what we think is a bug around line items in LTI1.3
Steps to reproduce
- Create an assignment using an LTI1.3 tool that has the "Accept grades from the tool" configured to "As specified in Deep Linking definition or Delegate to teacher"
Enable the "Allow TOOL to add grades in the gradebook" while creating the assignment.
Select Type points and a max grade.
- Launch the assignment
Both the `https://purl.imsglobal.org/spec/lti-ags/claim/endpoint` lineitems and lineitem parameters are present.
- Disable "Allow TOOL to ad grades in the gradebook".
- Launch the assignment again
- Re-enable "Allow TOOL to add grades in the gradebook".
- Launch the assignment again.
This time the lineitems options is present but the lineitem one has disappeared.
Calling the lineitems endpoint show that the existing lineitem is still there and that's it's the only one available. That one should be the one passed as the lineitem parameter on launch.
Expected behaviour
The lineitem launch parameter should be present on the third launch as it's the only lineitem linked to the assignment.