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

Add tag filtering to /tag/manage.php

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.1
    • 1.9.2, 3.1
    • Tags
    • MOODLE_19_STABLE, MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • wip-MDL-16855-master
    • Hide
      1. Go to Site administration>Appearance>Manage tags
      2. Click on Default collection
      3. Add several tags
      4. Search among tags
      5. Make sure when filter is set the columns can still be sorted
      6. Reset the search filter
      Show
      Go to Site administration>Appearance>Manage tags Click on Default collection Add several tags Search among tags Make sure when filter is set the columns can still be sorted Reset the search filter

      Our Moodle instance has over 2000 tags, and our administrator needed a way to quickly identify and fix some of the more common mistakes in tags names.

      This patch adds a new optional parameter and form to manage.php as well as some logic to add an extra WHERE clause to the big tag-grabbing query.

      I reused a lot of the form code from the "add new official tag" form, so the maintainer may want to clean that up (but it works fine as-is).

      Attached is a diff against the MOODLE_19_STABLE version of /tag/manage.php

        1. addtags.png
          addtags.png
          40 kB
        2. tag_filtering_1.png
          tag_filtering_1.png
          120 kB
        3. tag_filtering_2.png
          tag_filtering_2.png
          101 kB
        4. tag_filtering.patch
          2 kB
        5. tagfilter.png
          tagfilter.png
          33 kB

            marina Marina Glancy
            azaple1 Adam Zapletal (Inactive)
            cameron1729 cameron1729
            David Monllaó David Monllaó
            Ryan Wyllie Ryan Wyllie
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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