Permalink
Browse files

MDL-35208 mod_choice: respect order of options when running backup

  • Loading branch information...
1 parent 8f3c8e7 commit b8b00afaf38728330b4b9658324d64b863640b7e @danmarsden danmarsden committed Sep 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/choice/backup/moodle2/backup_choice_stepslib.php
@@ -65,8 +65,9 @@ protected function define_structure() {
$option->set_source_sql('
SELECT *
- FROM {choice_options}
- WHERE choiceid = ?',
+ FROM {choice_options}
+ WHERE choiceid = ?
+ ORDER BY id',
array(backup::VAR_PARENTID));
// All the rest of elements only happen if we are including user info

0 comments on commit b8b00af

Please sign in to comment.