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

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


    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4
    • Component/s: Questions, Quiz
    • Labels:
    • Environment:
      Unsure of all details however: Apache, MySQL 4.x, PHP 4.x
    • Affected Branches:
    • Fixed Branches:


      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.

        Gliffy Diagrams



            vaughany Paul Vaughan created issue -
            timhunt Tim Hunt made changes -
            Field Original Value New Value
            Fix Version/s 1.9.4 [ 10300 ]
            timhunt Tim Hunt made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            dougiamas Martin Dougiamas made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            dougiamas Martin Dougiamas made changes -
            Workflow jira [ 29192 ] MDL Workflow [ 61250 ]
            dougiamas Martin Dougiamas made changes -
            Workflow MDL Workflow [ 61250 ] MDL Full Workflow [ 90431 ]


              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created:
                  Fix Release Date: