Permalink
Browse files

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

  • Loading branch information...
1 parent 569f1ad commit cfa50637771cbfd7ab452df406cfab14a2241dd4 @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 cfa5063

Please sign in to comment.