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

$CFG->stringfilters do not get updated during upgrade or when a filter is deleted

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.7, 2.3.2, 2.5
    • 2.4.7, 2.5.3, 2.6
    • Filters
    • 3
    • BACKEND Sprint 6

    Description

      On upgrade from 1.9 to 2.x, filters that are no longer installed/available are not removed from $CFG->stringfilters config. Additionally, when filters are uninstalled, they are not removed from $CFG->stringfilters config. They should be removed during upgrade and when filters are uninstalled.

      The additional filters in $CFG->stringfilters can cause $CFG->filterall to remain enabled, which adds DB load to each page load to filter all strings. There is no way to change it via the UI - an admin must manually remove the legacy filters from the string.

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              sbc24 Sam Chaffee
              Marina Glancy Marina Glancy
              Frédéric Massart Frédéric Massart
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Nov/13