Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 70c2ec0ba26041dbebd358285b5b322cc7cd5149 1 parent 9815783
@danmarsden danmarsden authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mod/choice/backup/moodle2/backup_choice_stepslib.php
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.