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

Select User's Membership: not being populated

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide
      1. Go to Site administration ► Development ► Make test course and create a medium (M) course (1000 users).
      2. Navigate to the course.
      3. Under Course administration, go to Users ► Groups.
      4. Create a group G1.
      5. Select G1 and click Add/remove users.
      6. Add some users to the group. Make sure to take note of these users
      7. Create another group G2
      8. Select G2 and click Add/remove users.
      9. Add one or more potential members to G2 that do not belong to G1.
      10. Add one or more members to G2 that belong to G1.
      11. Go back to the groups page.
      12. Create another group G3.
      13. Select G3 and click Add/remove users.
      14. On the Potential members selector, select a G1 member.
        • Confirm that G1 comes up under Selected user's membership:.
      15. Select another user that belongs to G2.
        • Confirm that G2 comes up under Selected user's membership:.
      16. Select another user that belongs to G1 and G2.
        • Confirm that G1 and G2 come up under Selected user's membership:.
      17. Select another user that does not belong to any group.
        • Confirm that nothing is displayed under Selected user's membership:.
      18. Enter a value for the Search text field below the Potential members selector to filter the list of Potential members in such a way that one or more of G1 and G2's members will still come up on the list.
      19. On the Potential members selector, select a G1 member.
        • Confirm that G1 comes up under Selected user's membership:.
      20. Select another user that belongs to G2.
        • Confirm that G2 comes up under Selected user's membership:.
      21. Select another user that belongs to G1 and G2.
        • Confirm that G1 and G2 come up under Selected user's membership:.
      22. Select another user that does not belong to any group.
        • Confirm that nothing is displayed under Selected user's membership:.
      Show
      Go to Site administration ► Development ► Make test course and create a medium (M) course (1000 users). Navigate to the course. Under Course administration , go to Users ► Groups . Create a group G1. Select G1 and click Add/remove users . Add some users to the group. Make sure to take note of these users Create another group G2 Select G2 and click Add/remove users . Add one or more potential members to G2 that do not belong to G1. Add one or more members to G2 that belong to G1. Go back to the groups page. Create another group G3. Select G3 and click Add/remove users . On the Potential members selector, select a G1 member. Confirm that G1 comes up under Selected user's membership: . Select another user that belongs to G2. Confirm that G2 comes up under Selected user's membership: . Select another user that belongs to G1 and G2. Confirm that G1 and G2 come up under Selected user's membership: . Select another user that does not belong to any group. Confirm that nothing is displayed under Selected user's membership: . Enter a value for the Search text field below the Potential members selector to filter the list of Potential members in such a way that one or more of G1 and G2's members will still come up on the list. On the Potential members selector, select a G1 member. Confirm that G1 comes up under Selected user's membership: . Select another user that belongs to G2. Confirm that G2 comes up under Selected user's membership: . Select another user that belongs to G1 and G2. Confirm that G1 and G2 come up under Selected user's membership: . Select another user that does not belong to any group. Confirm that nothing is displayed under Selected user's membership: .
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-29774-master-by-sam-wilson

      Description

      When you are on a /group/members.php?group=xxx page and you have too many users in the "Potential Members" textarea, the textarea will display "too many users (xxx) to search". If you then search for a name such as "smith", results will be populated. The problem is that then clicking on a user's name will not populate the "Selected user's membership:" column. There seems to be two problems w/ this:

      1. It seems as if init_add_remove_members_page() is never being called which is causing the textarea's onchange event never to be set.
      2. Even if you call the textarea's onchange event (updateUserSummary) from within the console, the "Selected user's membership:" column will not be populated because the userSummaries array is empty

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Nov/16