Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4937

Reports Hangs when using User field filter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.5.4
    • Fix Version/s: None
    • Labels:
    • Plugin Version:
      2.5.3 (Build: 20131111)
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      Reports Hangs when using User field filter.

      The reason is this query:

      components/filters/fuserfield/plugin.class.php line 120:

      $userlist = array_keys($remoteDB->get_records('user'));

      This is retrieving way too much data, and then system freezes. I have changed it to just retrieve the ids and it works fine since I gather that's what is happening in the IN statements bellow.

      Replace it with:

      $userlist = array_keys($remoteDB->get_fieldset_select('user','id'));

        Attachments

          Activity

            People

            • Assignee:
              jleyva Juan Leyva
              Reporter:
              luisvsilva Luis Silva
              Participants:
              Component watchers:
              Juan Leyva
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: