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

Order of Filters has no effect filters are allways sorted by filter name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.5, 2.5.1
    • Filters
    • None
    • MOODLE_25_STABLE

      Problem: Filters should be applied in a certain order. This can be set by ordering filters on admin/filters.php. (http://docs.moodle.org/dev/Filter_enable/disable_by_context#Getting_filter_configuration)

      Problem:
      In lib/filterlib.php:filter_get_active_in_context filters shoud be returned due to their order. Since the loaded filters are stored in an array with the name of the filter as key. Ordering of filters get lost.

      For us this causes a problem, since our Moodle can be reached from multiple domains. We have a text filter that changes the URI to an absolute URI which is relative to the basis URI (e.g. www.domain/admin/index.php to /admin/index.php). If now the media filter is applied first and afterwards our filter (name: wwwsso) is applied, the media filter will create script tags for the flash player with the full domain and our filter will afterwards remove the domain. Finally, the media player cannot load the file.

            Unassigned Unassigned
            super3d Claus A. Us.
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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