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

The user/selector ajax for searching users fails in IE8

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Steps to replicate:
      1) Select a category
      2) In the settings block, select 'Assign Roles'
      3) Choose a role to assign
      4) Try to search by typing some text into the search text field below the user list.

      In IE8 this results in a javascript error complaining about an undefined object.

      Offending line:
      this.timeoutid = setTimeout(function(obj)

      {obj.send_query(false)}, this.querydelay*1000, this);

      This can be fixed by changing using YUI's 'later' function instead of setTimeout:
      this.timeoutid = Y.later(this.querydelay*1000, e, function(obj){obj.send_query(false)}

      , this);

      Patch file attached.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              aolley Adam Olley
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/May/11