Permalink
Browse files

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

…OODLE_21_STABLE
  • Loading branch information...
2 parents 2e61a81 + c3574e4 commit 2aa58eb6ce02b928b5d73475152e17211320729c @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 2aa58eb

Please sign in to comment.