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

Deleting the last category in a context gives an error - you should not be allowed to get that far

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.5, 2.8.3
    • 2.6.6, 2.7.3, 2.8.1
    • Questions
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • Hide
      1. Create a new course 'C1'.
      2. Go to Question bank -> Categories.
      3. Make a new subcategory 'Subcategory' of the category 'Default for C1'.
      4. Verify that there is no delete icon next to 'Default for C1'.
      5. Click the left arrow next to 'Subcategory' to promote it to the top level.
      6. Verify that both categories now have a delete icon.
      Show
      Create a new course 'C1'. Go to Question bank -> Categories. Make a new subcategory 'Subcategory' of the category 'Default for C1'. Verify that there is no delete icon next to 'Default for C1'. Click the left arrow next to 'Subcategory' to promote it to the top level. Verify that both categories now have a delete icon.

      Steps to reproduce:

      1. Create a new course 'C1'.
      2. Go to Question bank -> Categories.
      3. Make a new subcategory 'Subcategory' of the category 'Default for C1'.

      Expected result:

      • There should not be a delete icon next to 'Default for C1'.

      Acutal result:

      • That icon is present.
      • When you click it, you get a fatal error telling you that you cannot delete that category because it is the default.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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