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

Error restoring a 1-activity backup into a site with a single category + course

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.7
    • Backup
    • MOODLE_27_STABLE
    • Hide

      Create a second category/course.

      Or start from Site administration -> Courses -> Restore.

      Show
      Create a second category/course. Or start from Site administration -> Courses -> Restore.
      1. Install a new site.
      2. Create just a single course.
      3. Restore the attached file.

      While testing MDL-44690 I encountered a bug within the restore system.
      I tested, as admin, on a freshly installed site, with a single category (Misc) and a single course.
      When I attempted to restore the attached backup file I consistently encountered an error at stage 2: destination.

      There are no categories or existing courses you can restore to.

      I've attempted restoring through three means:

      1. Frontpage + Admin Block: Site administration > Courses > Restore Course.
      2. In the course + Admin block: Course administration > Restore
      3. In a newly created quiz + Admin block: Quiz administration > Restore.

      All failed the same.

      I found as soon as I created a second category + course the issue was no longer present.

      I suspect after talking with Eloy that there is a bad course count somewhere in the code.

            Unassigned Unassigned
            samhemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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