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

dmlib 2.0: get_records_list() doesn't work as in 1.9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • Database SQL/XMLDB
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

      In Survey module: view.php

      line 122: $DB->get_records_list("survey_questions", "id", explode(',', $survey->questions))

      This request doesn't work because get_records_list do (moodle_database.php):
      SELECT * FROM mdl_survey_questions WHERE id = ? AND id = ? AND id = ?

      For this call, we would like something like "WHERE id = ? OR id = ? OR id = ?"
      or like in 1.9 "id IN ()"

            skodak Petr Skoda
            jerome Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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