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

mod_lti does not track page views for completion

    Details

    • Testing Instructions:
      Hide

      Enable Completion tracking for a course
      Turn Course Editing on
      Add a new Activity to your Course
      Choose External Tool (LTI)

      • Enter an Activity Name
      • Set Launch URL to an LTI tool
      • Set Launch Container to New Window (so you don't have to use BACK button)
        NOTE: You can use any URL here since we only care about activity (http://www.google.com works)
      • Set completion tracking to: Show activity as complete when conditions are met
      • Check the box: Student must view this activity to complete it
      • Click Save and Display

      Close the LTI window and go back to the course view.

      EXPECTED RESULT: Activity is now marked completed

      ACTUAL RESULT: Activity not marked as completed

      Show
      Enable Completion tracking for a course Turn Course Editing on Add a new Activity to your Course Choose External Tool (LTI) Enter an Activity Name Set Launch URL to an LTI tool Set Launch Container to New Window (so you don't have to use BACK button) NOTE: You can use any URL here since we only care about activity ( http://www.google.com works) Set completion tracking to: Show activity as complete when conditions are met Check the box: Student must view this activity to complete it Click Save and Display Close the LTI window and go back to the course view. EXPECTED RESULT: Activity is now marked completed ACTUAL RESULT: Activity not marked as completed
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
      git@github.com:Trii/moodle.git
    • Pull Master Branch:
      MDL-41520-master-mod_lti-completion-view

      Description

      mod/lti/view.php is missing the following code:

      // Mark viewed by user (if required)
      $completion = new completion_info($course);
      $completion->set_module_viewed($cm);

      You can enable completion on View in the lti settings but moodle never actually tracks that you viewed it

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/13