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

Grade import doesn't check $value before attempting to match on user id number.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 2.0.1
    • Gradebook
    • None
    • MOODLE_20_STABLE

      During a grade import where I set map to and map from to user id number I got the following error message several times:

      Error: mdb->get_record() found more than one record!
      line 1268 of /lib/dml/moodle_database.php: call to debugging()
      line 1228 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
      line 1208 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
      line 278 of /grade/import/csv/index.php: call to moodle_database->get_record()

      I'm guessing it is because a couple of the users in the csv file didn't have id numbers (blanks in the csv file) and there is no validation going on to check there is actually something there before proceeding to query the database.

      Cheers
      Sam

            andyjdavis Andrew Davis
            samhemelryk Sam Hemelryk
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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