mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-62708 question: Add idnumbers to question and question category
This commit is contained in:
parent
6902f39141
commit
6189fda47f
24 changed files with 502 additions and 13 deletions
|
@ -2211,7 +2211,7 @@ class backup_questions_structure_step extends backup_structure_step {
|
|||
$qcategory = new backup_nested_element('question_category', array('id'), array(
|
||||
'name', 'contextid', 'contextlevel', 'contextinstanceid',
|
||||
'info', 'infoformat', 'stamp', 'parent',
|
||||
'sortorder'));
|
||||
'sortorder', 'idnumber'));
|
||||
|
||||
$questions = new backup_nested_element('questions');
|
||||
|
||||
|
@ -2219,7 +2219,7 @@ class backup_questions_structure_step extends backup_structure_step {
|
|||
'parent', 'name', 'questiontext', 'questiontextformat',
|
||||
'generalfeedback', 'generalfeedbackformat', 'defaultmark', 'penalty',
|
||||
'qtype', 'length', 'stamp', 'version',
|
||||
'hidden', 'timecreated', 'timemodified', 'createdby', 'modifiedby'));
|
||||
'hidden', 'timecreated', 'timemodified', 'createdby', 'modifiedby', 'idnumber'));
|
||||
|
||||
// attach qtype plugin structure to $question element, only one allowed
|
||||
$this->add_plugin_structure('qtype', $question, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue