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 013b70c..a4b4c70 100644 --- a/backup/moodle2/restore_qtype_algebra_plugin.class.php +++ b/backup/moodle2/restore_qtype_algebra_plugin.class.php @@ -62,7 +62,7 @@ class restore_qtype_algebra_plugin extends restore_qtype_plugin { $newquestionid = $this->get_new_parentid('question'); $questioncreated = $this->get_mappingid('question_created', $oldquestionid) ? true : false; - // If the question has been created by restore, we need to create its qtype_algebra too. + // If the question has been created by restore, we need to create its qtype_algebra_options too. if ($questioncreated) { // Adjust some columns. $data->questionid = $newquestionid; @@ -91,7 +91,7 @@ class restore_qtype_algebra_plugin extends restore_qtype_plugin { // If the question has been created by restore, we need to create its qtype_algebra_variables too. if ($questioncreated) { // Adjust some columns. - $data->question = $newquestionid; + $data->questionid = $newquestionid; // Insert record. $newitemid = $DB->insert_record('qtype_algebra_variables', $data); // Create mapping. |