Permalink
Browse files

MDL-34085 Fix the backup options names in core_course_duplicate_course

Fix the option names to match those used by the backup subsystem.
  • Loading branch information...
1 parent ee2e56e commit 689ba48b002abba8ab6d4dd78e97d99c79778137 @iarenaza iarenaza committed May 30, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 course/externallib.php
View
@@ -678,9 +678,9 @@ public static function duplicate_course_parameters() {
"users" (int) Include users (default to 0 that is equal to no),
"role_assignments" (int) Include role assignments (default to 0 that is equal to no),
"comments" (int) Include user comments (default to 0 that is equal to no),
- "completion_information" (int) Include user course completion information (default to 0 that is equal to no),
+ "userscompletion" (int) Include user course completion information (default to 0 that is equal to no),
"logs" (int) Include course logs (default to 0 that is equal to no),
- "histories" (int) Include histories (default to 0 that is equal to no)'
+ "grade_histories" (int) Include histories (default to 0 that is equal to no)'
),
'value' => new external_value(PARAM_RAW, 'the value for the option 1 (yes) or 0 (no)'
)
@@ -742,9 +742,9 @@ public static function duplicate_course($courseid, $fullname, $shortname, $categ
'users' => 0,
'role_assignments' => 0,
'comments' => 0,
- 'completion_information' => 0,
+ 'userscompletion' => 0,
'logs' => 0,
- 'histories' => 0
+ 'grade_histories' => 0
);
$backupsettings = array();

0 comments on commit 689ba48

Please sign in to comment.