Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…moodle
  • Loading branch information...
commit 976624ad5eacf3cc6ab3c1427b3990ec559df01c 2 parents 2ba08e4 + 9107daa
@nebgor nebgor authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 backup/converter/moodle1/handlerlib.php
View
5 backup/converter/moodle1/handlerlib.php
@@ -1222,11 +1222,14 @@ public function process_question(array $data, array $raw) {
}
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
$this->xmlwriter->begin_tag('question', array('id' => $data['id']));
foreach (array(
'parent', 'name', 'questiontext', 'questiontextformat',
- 'generalfeedback', 'generalfeedbackformat', 'defaultgrade',
+ 'generalfeedback', 'generalfeedbackformat', 'defaultmark',
'penalty', 'qtype', 'length', 'stamp', 'version', 'hidden',
'timecreated', 'timemodified', 'createdby', 'modifiedby'
) as $fieldname) {
Please sign in to comment.
Something went wrong with that request. Please try again.