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

View File

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

View File

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