diff options
Diffstat (limited to 'backup/moodle2/restore_qtype_algebra_plugin.class.php')
-rw-r--r-- | backup/moodle2/restore_qtype_algebra_plugin.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backup/moodle2/restore_qtype_algebra_plugin.class.php b/backup/moodle2/restore_qtype_algebra_plugin.class.php index 58acf2d..013b70c 100644 --- a/backup/moodle2/restore_qtype_algebra_plugin.class.php +++ b/backup/moodle2/restore_qtype_algebra_plugin.class.php @@ -67,9 +67,9 @@ class restore_qtype_algebra_plugin extends restore_qtype_plugin { // Adjust some columns. $data->questionid = $newquestionid; // Insert record. - $newitemid = $DB->insert_record('qtype_algebra', $data); + $newitemid = $DB->insert_record('qtype_algebra_options', $data); // Create mapping (needed for decoding links). - $this->set_mapping('qtype_algebra', $oldid, $newitemid); + $this->set_mapping('qtype_algebra_options', $oldid, $newitemid); } // Nothing to remap if the question already existed. } |