Permalink
Browse files

MDL-31814 question bank: fix possible error with sort columns.

  • Loading branch information...
timhunt committed May 4, 2012
1 parent 6791b08 commit c3574e4f10bd3e575dd754997dd49017ed0bd84e
Showing with 4 additions and 0 deletions.
  1. +2 −0 mod/quiz/editlib.php
  2. +2 −0 question/editlib.php
View
@@ -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
@@ -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 c3574e4

Please sign in to comment.