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

Add tag filtering to /tag/manage.php

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2, 3.1
    • Fix Version/s: 3.1
    • Component/s: Tags
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      wip-MDL-16855-master

      Description

      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

        Attachments

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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16