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

Use autocomplete widget for course category selector

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      test 1 (edit course settings)

      1. edit course settings
      2. check that course category field uses autocomplete widget
      3. change course category field and save form
      4. check that category has been changed

      test 2 (request course creation)

      1. request a course (<url>/course/request.php)
      2. check that course category field uses autocomplete widget

      test 3 (upload courses)

      1. go to site administration > courses > upload courses
      2. upload a csv file to access to the second step (attached upload_course.csv can be used)
      3. check that course category field uses autocomplete widget

      test 4 (edit database enrol settings)

      1. go to site administration > plugins > enrolments > manage enrol plugins
      2. edit external database settings
      3. check that course category field uses autocomplete widget

      test 5 (add new event to calendar)

      1. go to the calendar
      2. add a new event
      3. select "category" in "type of event"
      4. check that category field uses autocomplete widget

      test 6 (add/edit course category)

      1. go to site administration > courses > manage courses and categories
      2. click on "create a new category" button
      3. check that parent category field uses autocomplete widget

      test 7 (delete course category)

      1. go to site administration > courses > manage courses and categories
      2. use "actions menu" on a non-empty category, and select "delete" option
      3. check that move into field uses autocomplete widget

      test 8 (cohorts)

      1. go to site administration > users > cohorts
      2. click on "Add new cohort" tab
      3. check that context field uses autocomplete widget

      test 9 (copy course)

      1. access to a course
      2. select "Copy course" from the main menu course
      3. check that course category field uses autocomplete widget

       

      actual result (before the patch):

      course category field uses default drop-down list (select tag in HTML)

      expected result (after the patch):

      course category field uses autocomplete widget, with possibility to search some text in drop-down list

      Show
      test 1 (edit course settings) edit course settings check that course category field uses autocomplete widget change course category field and save form check that category has been changed test 2 (request course creation) request a course (<url>/course/request.php) check that course category field uses autocomplete widget test 3 (upload courses) go to site administration > courses > upload courses upload a csv file to access to the second step (attached upload_course.csv can be used) check that course category field uses autocomplete widget test 4 (edit database enrol settings) go to site administration > plugins > enrolments > manage enrol plugins edit external database settings check that course category field uses autocomplete widget test 5 (add new event to calendar) go to the calendar add a new event select "category" in "type of event" check that category field uses autocomplete widget test 6 (add/edit course category) go to site administration > courses > manage courses and categories click on "create a new category" button check that parent category field uses autocomplete widget test 7 (delete course category) go to site administration > courses > manage courses and categories use "actions menu" on a non-empty category, and select "delete" option check that move into field uses autocomplete widget test 8 (cohorts) go to site administration > users > cohorts click on "Add new cohort" tab check that context field uses autocomplete widget test 9 (copy course) access to a course select "Copy course" from the main menu course check that course category field uses autocomplete widget   actual result (before the patch): course category field uses default drop-down list ( select tag in HTML) expected result (after the patch): course category field uses autocomplete widget, with possibility to search some text in drop-down list
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE
    • Pull 3.10 Branch:
      67278-moodle-310-categories-selector
    • Pull Master Branch:
      67278-master-categories-selector

      Description

      When your Moodle instance have a lot of categories, use default select tag to find the right category is not easy.

      Maybe it will be interesting to use autocomplete widget instead of a select tag.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jboulen Julien Boulen
              Reporter:
              jboulen Julien Boulen
              Peer reviewer:
              Amaia Anabitarte Amaia Anabitarte
              Integrator:
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours, 20 minutes
                  7h 20m