MDL-34085 Fix the backup options names in core_course_duplicate_course
authorIñaki Arenaza <iarenaza@mondragon.edu>
Thu, 30 May 2013 15:09:49 +0000 (17:09 +0200)
committerIñaki Arenaza <iarenaza@mondragon.edu>
Thu, 30 May 2013 15:50:22 +0000 (17:50 +0200)
Fix the option names to match those used by the backup subsystem.

course/externallib.php

index 0eeb13e..1a79201 100644 (file)
@@ -678,9 +678,9 @@ class core_course_external extends external_api {
                                             "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 @@ class core_course_external extends external_api {
             'users' => 0,
             'role_assignments' => 0,
             'comments' => 0,
-            'completion_information' => 0,
+            'userscompletion' => 0,
             'logs' => 0,
-            'histories' => 0
+            'grade_histories' => 0
         );
 
         $backupsettings = array();