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

restoring a course as a new course doesnt increment category->coursecount

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      I've restored a course several times into a new course each time. I now have 5 courses in the category however the course category page (course/index.php?categoryedit=on) still says I only have 2 which is how many I had before I started restoring courses. Looking in the DB at the course_categories table coursecount is a column and it contains 2. When restore creates a new course the coursecount needs to be reevaluated or incremented.

        Attachments

          Activity

            People

            • Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              andyjdavis Andrew Davis
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10