mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 15:10:05 +01:00
MDL-79863 qtype_ordering: qtype/ordering fix restoring or options in ordering questions
This commit is contained in:
parent
cc1af29abc
commit
f25944220a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user