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

Cannot delete empty category after deleting questions: category ID is invalid

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.3
    • 1.9.4
    • Questions, Quiz
    • None
    • Unsure of all details however: Apache, MySQL 4.x, PHP 4.x
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

    Description

      Problem arises after deleting questions and when trying to delete categories:

      Course Administration block, click Questions.
      Chose the main category with a large number of sub-categories containing over 550 questions.
      Ensure "Display questions from sub-categories too" is checked.
      Click "Show all 550 questions" at the bottom of page.
      Click Select All, then Delete.
      Click "Yes" to confirm deletion.

      Click on Categories tab, See all categories, sub-categories and sub-sub-categories.
      Click on 'X' (delete button) next to any category
      Get error: "Category ID is invalid"
      Clicking back on Browser, and then clicking on Questions tab, Import tab or Export tab all result in "Category ID is invalid" error.

      Going back to course (clicking on course name in breadcrumb navigation) and clicking Questions in Admin block to get back to the same location, I am now able to delete categories without problems.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            vaughany Paul Vaughan
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              28/Jan/09