Permalink
Browse files

Merge branch 'MDL-31814_22' of git://github.com/timhunt/moodle into M…

…OODLE_22_STABLE
  • Loading branch information...
2 parents 5724bb1 + 57f2278 commit 573e559c96deb834a7138b4f81a0774dfab1b358 @danpoltawski danpoltawski committed May 17, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 mod/quiz/editlib.php
  2. +2 −0 question/editlib.php
View
2 mod/quiz/editlib.php
@@ -1141,6 +1141,8 @@ protected function wanted_columns() {
}
protected function default_sort() {
+ $this->requiredcolumns['qtype'] = $this->knowncolumntypes['qtype'];
+ $this->requiredcolumns['questionnametext'] = $this->knowncolumntypes['questionnametext'];
return array('qtype' => 1, 'questionnametext' => 1);
}
View
2 question/editlib.php
@@ -1033,6 +1033,8 @@ protected function sort_to_params($sorts) {
}
protected function default_sort() {
+ $this->requiredcolumns['qtype'] = $this->knowncolumntypes['qtype'];
+ $this->requiredcolumns['questionname'] = $this->knowncolumntypes['questionname'];
return array('qtype' => 1, 'questionname' => 1);
}

0 comments on commit 573e559

Please sign in to comment.