Merge branch 'MDL-29270-question-grade' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Aparup Banerjee 2011-09-26 16:57:01 +08:00
commit 976624ad5e

View file

@ -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) {