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

Choice modul with limit does not respect Separate groups mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6, 1.7, 1.8, 1.9
    • Fix Version/s: 1.9
    • Component/s: Choice, Groups
    • Labels:
      None
    • Affected Branches:
      MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Steps to reproduce:
      1) create/use a course with at least two groups of student
      2) add new Choice activity with following setting:

      • Limit the number of responses allowed = Enable
      • Choice 1: Choice = First Choice ; Limit = 1
      • Choice 2: Choice = Second Choice ; Limit = 1
      • Group mode = Separate groups
        3) Login as a student from first group and make a choice
        4) Login as a student from another group and view the choice

      There is a problem: the choice made by a student from another group is taken into account and it makes the choice item (Full). IMHO this is a bug in Separate groups mode. Only choices made by students from the same group should count.
      See the screenshot attached: even the choice has not been answered yet in the current group, the First Choice is already full...

        Attachments

        1. screenshot.png
          screenshot.png
          31 kB
        2. patch.diff
          4 kB
        3. MDL-11850.patch2.txt
          8 kB

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Tester:
              Nobody Nobody
              Participants:
              Component watchers:
              Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08