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

Use autocomplete widget for course category selector

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_310_STABLE
    • 67278-master-categories-selector
    • 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

      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.

       

            jboulen Julien Boulen
            jboulen Julien Boulen
            Amaia Anabitarte Amaia Anabitarte
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Anna Carissa Sadia Anna Carissa Sadia
            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 - 7 hours, 20 minutes
                7h 20m

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