Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…/mudrd8mz/moodle into MOODLE_21_STABLE
  • Loading branch information...
commit 3cef27bf9f45cab32301ddcfcd2e3e1d26a44c00 2 parents 8daff43 + ef4cf39
@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
@@ -1221,11 +1221,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.