mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
Merge branch 'MDL-29270-question-grade' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
976624ad5e
1 changed files with 4 additions and 1 deletions
|
@ -1222,11 +1222,14 @@ class moodle1_question_bank_handler extends moodle1_xml_handler {
|
||||||
}
|
}
|
||||||
unset($data['image']);
|
unset($data['image']);
|
||||||
|
|
||||||
|
// replay the upgrade step 2011060301 - Rename field defaultgrade on table question to defaultmark
|
||||||
|
$data['defaultmark'] = $data['defaultgrade'];
|
||||||
|
|
||||||
// write the common question data
|
// write the common question data
|
||||||
$this->xmlwriter->begin_tag('question', array('id' => $data['id']));
|
$this->xmlwriter->begin_tag('question', array('id' => $data['id']));
|
||||||
foreach (array(
|
foreach (array(
|
||||||
'parent', 'name', 'questiontext', 'questiontextformat',
|
'parent', 'name', 'questiontext', 'questiontextformat',
|
||||||
'generalfeedback', 'generalfeedbackformat', 'defaultgrade',
|
'generalfeedback', 'generalfeedbackformat', 'defaultmark',
|
||||||
'penalty', 'qtype', 'length', 'stamp', 'version', 'hidden',
|
'penalty', 'qtype', 'length', 'stamp', 'version', 'hidden',
|
||||||
'timecreated', 'timemodified', 'createdby', 'modifiedby'
|
'timecreated', 'timemodified', 'createdby', 'modifiedby'
|
||||||
) as $fieldname) {
|
) as $fieldname) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue