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

Choice activity group selector broken

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.4, 4.0.6, 4.1
    • None
    • Choice
    • MOODLE_400_STABLE, MOODLE_401_STABLE

    Description

      Step to reproduce

      • Create a Choice activity with visible groups mode,  Publish results = Always show results to students,  Privacy of results = Publish full results
      • Create 2 groups (A and B) and assign a student to each
      • Login as student in group A
      • Ensure "My Groups > Group A" is selected in the "Visible groups" selector and refresh the page.
      • Select an option and click "Save my choice"
      • Login as student in group B
      • Ensure "My Groups > Group B" is selected in the "Visible groups" selector and refresh the page.
      • Select an option and click "Save my choice"
      • You should see just your response
      • Set the "Visible groups" selector to "All participants" and wait for the page to load
        • Expected: You see responses from both groups
        • Actual: You see the response from group B
      • Refresh the page
      • You should now see responses from both groups

      I believe that this is due to the group selector code being moved in MDL-73438, so that the selected group is being stored after the list of responses has been generated. On the next page load, it is set correctly

      Attachments

        1. mdl_76148_after_choice.png
          mdl_76148_after_choice.png
          37 kB
        2. mdl_76148_before_choice.png
          mdl_76148_before_choice.png
          33 kB
        3. MDL-76148_behavior.gif
          MDL-76148_behavior.gif
          158 kB
        4. mdl-76148.webm
          7.54 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              marxjohnson Mark Johnson
              Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: