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

Lesson shows no attempts if associated with a grouping

XMLWordPrintable

    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      Do not use groupings with lessons.

      Show
      Do not use groupings with lessons.
    • Hide
      1. Enable experimental admin setting enablegroupmembersonly
      2. Create a group/grouping with students
      3. Create lesson and set that lesson to only be visible to users in the created grouping
      4. As a student in the created grouping, attempt the lesson activity
      5. As a teacher, VERIFY that viewing the report page will display the attempt that was made.
      Show
      Enable experimental admin setting enablegroupmembersonly Create a group/grouping with students Create lesson and set that lesson to only be visible to users in the created grouping As a student in the created grouping, attempt the lesson activity As a teacher, VERIFY that viewing the report page will display the attempt that was made.

      A lesson associated with a grouping will have the report.php display that no attempts were made. But there are results in the lesson_attempts table and the gradebook.

      The problem is because of an incorrect query for groupings and groups.

      Replication steps:

      1. Create a group/grouping with students
      2. Create lesson and associate that lesson with the created grouping
      3. As a student in the created grouping, attempt the lesson activity
      4. View the report page for the lesson

      Expected result: The report page will display the attempt that was made.

      Actual result: A message is displayed "No attempts have been made on this lesson."

            rex Rex Lorenzo
            rex Rex Lorenzo
            Dan Poltawski Dan Poltawski
            Damyon Wiese Damyon Wiese
            Frédéric Massart Frédéric Massart
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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