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

The user/selector ajax for searching users fails in IE8

XMLWordPrintable

    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      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.

            samhemelryk Sam Hemelryk
            aolley Adam Olley
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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