Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44170

When preconfigured LTI tools are added to a course, the typeid is not set correctly.

XMLWordPrintable

    • MOODLE_26_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-44170-master
    • Hide

      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 typeid FROM mdl_lti should be the same as SELECT id from mdl_lti_types.

      Show
      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 typeid FROM mdl_lti should be the same as SELECT id from mdl_lti_types.

      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.

            adrian.r.fish@gmail.com Adrian Fish
            adrian.r.fish@gmail.com Adrian Fish
            Chris Scribner Chris Scribner
            Damyon Wiese Damyon Wiese
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.