Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-67531

backup::restore_dbops/caclulate_course_names does not check for same category

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.7.3, 3.8, STABLE backlog
    • Backup
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-67531-master
    • Easy
    • Hide

      1) Create a new empty Category
      2) Restore a Course from backup either using cli or UI that has the same full/shortname with a Course from another existing Category
      3) VERIFY that the new Course is created with suffix " Copy 1"/"_1"

      which it shouldn't since it's the only one in the Category.

      Show
      1) Create a new empty Category 2) Restore a Course from backup either using cli or UI that has the same full/shortname with a Course from another existing Category 3) VERIFY that the new Course is created with suffix " Copy 1"/"_1" which it shouldn't since it's the only one in the Category.

      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.

            Unassigned Unassigned
            lazarosfs Lazaros Sotiriadis
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.