1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-21 08:00:37 +01:00

MDL-79863 qtype_ordering: qtype/ordering fix restoring or options in ordering questions

This commit is contained in:
Gordon Bateson 2015-02-21 06:36:14 +09:00 committed by Mathew May
parent cc1af29abc
commit f25944220a
2 changed files with 5 additions and 4 deletions
question/type/ordering

@ -60,8 +60,9 @@ class restore_qtype_ordering_plugin extends restore_qtype_plugin {
$oldid = $data->id; $oldid = $data->id;
// Detect if the question is created or mapped // Detect if the question is created or mapped
$oldquestionid = $this->get_old_parentid('questionid'); // "question" is the XML tag name, not the DB field name
$newquestionid = $this->get_new_parentid('questionid'); $oldquestionid = $this->get_old_parentid('question');
$newquestionid = $this->get_new_parentid('question');
// If the question has been created by restore, // If the question has been created by restore,
// we need to create a "qtype_ordering_options" record // we need to create a "qtype_ordering_options" record

@ -30,6 +30,6 @@ defined('MOODLE_INTERNAL') || die();
$plugin->cron = 0; $plugin->cron = 0;
$plugin->component = 'qtype_ordering'; $plugin->component = 'qtype_ordering';
$plugin->maturity = MATURITY_STABLE; // ALPHA=50, BETA=100, RC=150, STABLE=200 $plugin->maturity = MATURITY_STABLE; // ALPHA=50, BETA=100, RC=150, STABLE=200
$plugin->release = '2015-02-21 (21)'; $plugin->release = '2015-02-21 (22)';
$plugin->version = 2015022121; $plugin->version = 2015022122;
$plugin->requires = 2010112400; // Moodle 2.0 $plugin->requires = 2010112400; // Moodle 2.0