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

Autocomplete gets an extra empty option each time a selected option is removed

XMLWordPrintable

    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-78953-401
    • MDL-78953-403
    • Hide

      Test 1:

      1. Log in as admin
      2. Go to the participants page of a course
      3. Add a "Status" filter
      4. Select "Active" and "Inactive" statuses.
        • The statuses will be removed from the list and appear as labels alongside.
      5. Click on each of the "Active" and "Inactive" labels to remove them from the selection.
      6. Re-open the autocomplete list.
      7. Confirm: You see an empty option as the first item, "Active" and "Inactive" on the list;

       

      Test 2: (From the regression issue MDL-73213)

      1. Login as admin
      2. Create a test user
      3. Navigate to "Site Administration" in the main menu
      4. Go to the Server tab
      5. Scroll to the section 'Web services' and click on 'Manage Tokens'
      6. Create a token
      7. Expand the "User" dropdown
      8. Select one user
      9. Expand the "User" dropdown again
      10. Close the dropdown menu without choosing any new items.
      11. Click "Save changes"
      12. Confirm that the token was created for the chosen user.
      13. Navigate to Development > Make test course in site administration
      14. Create course of size S
      15. Navigate back to Web services > Manage tokens
      16. Press Create token
      17. Select a user from User dropdown
      18. Expand the User dropdown again_
      19. Close the dropdown menu without choosing any new items.
      20. Click "Save changes"
      21. Confirm that the token was created for the chosen user.
      Show
      Test 1: Log in as admin Go to the participants page of a course Add a "Status" filter Select "Active" and "Inactive" statuses. The statuses will be removed from the list and appear as labels alongside. Click on each of the "Active" and "Inactive" labels to remove them from the selection. Re-open the autocomplete list. Confirm : You see an empty option as the first item, "Active" and "Inactive" on the list;   Test 2: (From the regression issue MDL-73213 ) Login as admin Create a test user Navigate to "Site Administration" in the main menu Go to the Server tab Scroll to the section 'Web services' and click on 'Manage Tokens' Create a token Expand the "User" dropdown Select one user Expand the "User" dropdown again Close the dropdown menu without choosing any new items. Click "Save changes" Confirm  that the token was created for the chosen user. Navigate to  Development > Make test course  in site administration Create course of size S Navigate back to  Web services > Manage tokens Press  Create token Select a user from  User  dropdown Expand the  User  dropdown again_ Close the dropdown menu without choosing any new items. Click "Save changes" Confirm  that the token was created for the chosen user.

      Steps to reproduce:

      1. Log in to qa.moodledemo.net as a teacher
      2. Go to the participants page of a course, e.g. https://qa.moodledemo.net/user/index.php?id=2
      3. Add a "Status" filter
      4. Select "Active" and "Inactive" statuses.
        • The statuses will be removed from the list and appear as labels alongside.
      5. Click on each of the "Active" and "Inactive" labels to remove them from the selection.
      6. Re-open the autocomplete list.
      7. Expected: You see "Active" and "Inactive" on the list
      8. Actual: You see "Active" and "Inactive", preceded by 2 empty options.

      It's possible that this is a regression from MDL-73213

            pedro.jordao@moodle.com Pedro Jordao
            marxjohnson Mark Johnson
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 days, 3 hours, 25 minutes
                4d 3h 25m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.