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

When editing a course section, if "Restrict access"->"Grouping access" is set to a grouping, it can't be set back to None

    Details

    • Testing Instructions:
      Hide

      In a course with multiple groupings (on a server with enablegroupmembersonly and enableavailability set):

      1. Turn Editing on
      2. Edit a section
        • Set a topic to be visible only to a specific grouping
        • Save changes
      3. Confirm that the topic shows the restricted to that grouping (the grouping name will appear in brackets) on the course/view page
      4. Edit the section again
        • Confirm that the topic is restricted to that grouping still
        • Set the grouping to "None"
        • Save changes
      5. Confirm that the topic no longer shows the restriction on the course/view page
      6. Edit the section again
        • Confirm that the topic is not restricted to any grouping
      Show
      In a course with multiple groupings (on a server with enablegroupmembersonly and enableavailability set): Turn Editing on Edit a section Set a topic to be visible only to a specific grouping Save changes Confirm that the topic shows the restricted to that grouping (the grouping name will appear in brackets) on the course/view page Edit the section again Confirm that the topic is restricted to that grouping still Set the grouping to "None" Save changes Confirm that the topic no longer shows the restriction on the course/view page Edit the section again Confirm that the topic is not restricted to any grouping
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      MDL-35321-master

      Description

      When editing a course section, if "Restrict access"->"Grouping access" is set to a grouping, it can't be set back to None. It can be changed to a different grouping.

      To reproduce:
      1. In admin settings set "Enable conditional"/"accessenableavailability" to checked / yes
      2. In admin settings set "Enable group members"/"onlyenablegroupmembersonly" to checked / yes
      3. In a course create two groupings "A" and "B".
      4. Edit course section.
      5. In restrcit access section set "Grouping access" to grouping "A" and save changes.
      6. Notice the section restriction is "(A)"
      7. Edit course section and set "Grouping access" to grouping "None" and save changes.
      8. Notice the section restriction is still "(A)"
      9. Edit course section and set "Grouping access" to grouping "B" and save changes.
      10. Notice the section restriction is "(B)"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  9 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12