-
Bug
-
Resolution: Fixed
-
Major
-
2.6.1
-
MOODLE_26_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-44170-master -
The typeid column of the mdl_lti table doesn't get set correctly when you add an lti tool to a course. It defaults to 0 every time. This is incorrect behaviour; the typeid should be the same as the id column of mdl_lti_types for the tool in question.
Steps to reproduce:
1. Configure an LTI tool as admin. It doesn't have to be real, just a name and url.
2. In a course, add an External Tool activity, using the url from step 1. Make sure to use the auto matched type from the dropdown.
3. SELECT * FROM mdl_lti and you'll see the typeid is 0. SELECT * from mdl_lti_types and you'll see the id column of the tool you added in step 1. The typeid of mdl_lti should be the same, but it isn't.
This causes problems when you need to lookup the permissions of the lti type; it forces you to match on tool url rather than just use the typeid.
- blocks
-
MDL-41724 Implement the IMS LTI contexts membership service
-
- Closed
-