-
Bug
-
Resolution: Fixed
-
Minor
-
2.5
-
MOODLE_25_STABLE
-
MOODLE_26_STABLE
-
MDL-40618_restore_get_questions -
$qs = $DB->get_records_sql("SELECT itemid
|
FROM {backup_ids_temp}
|
WHERE backupid = ?
|
AND itemname = 'question'
|
AND parentitemid = ?", array($restoreid, $qcatid));
|
foreach ($qs as $q) {
|
$temprec = self::get_backup_ids_record($restoreid, 'question', $q->itemid);
|
$results[$q->itemid] = $temprec->info;
|
}
|
return $results;
|
Should be rewritten to immediately return the required data from backup_ids_temp rather than re-querying get_backup_ids_record.