-
Improvement
-
Resolution: Deferred
-
Minor
-
None
-
3.7.3, 3.8, STABLE backlog
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-67531-master -
Easy
-
When restoring a course from backup into a category as a new course, the course's full and short names are created with suffix "- Copy "/"_" even if the category is empty.
The above happens only if the specific /full/short-names already exist in other categories.
backup::restore_dbops/caclulate_course_names does not check if the course that is about to be created belongs to the same category as the ones counted.
We expect to restore a backed up Course to an empty Category using the original naming and instead FullName_Copy 1/ShortName_1 is created.
If total count of Courses with name "fullname_test" is for ex. 4 regardless of Category each one belongs, the next restore will create a "fullname_test Copy 5" Course even if it's the only one in the Category.
- Testing discovered
-
MDL-67488 admin/cli/restore.php addition for single/bulk Course restore
-
- Closed
-