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

Lesson shows no attempts if associated with a grouping

    Details

    • Testing Instructions:
      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.
    • Workaround:
      Hide

      Do not use groupings with lessons.

      Show
      Do not use groupings with lessons.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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