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

Lesson shows no attempts if associated with a grouping

    XMLWordPrintable

Details

    • 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.

    Description

      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."

      Attachments

        Issue Links

          Activity

            People

              rex Rex Lorenzo
              rex Rex Lorenzo
              Dan Poltawski Dan Poltawski
              Damyon Wiese Damyon Wiese
              Frédéric Massart Frédéric Massart
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Mar/13