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

When removing a question bank category containing questions, the shown count could show an unexpected number.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0
    • Questions
    • MOODLE_500_STABLE

      If a question bank category containing questions is about to removed (e.g. there is one question with 2 versions), the shown count could show an unexpected number stating "The category 'Category A' contains 2 questions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.".
      One would probably expect
      The category 'Category A' contains 1 question with 2 versions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.

      TO REPRODUCE:

      1. In a course, create a question bank.
      2. In that question bank, create a second question category, 'Category A'.
      3. In that category, 'Category A', create a question.
      4. Edit the question in that category, 'Category A', and save it which creates a version 2, 'v2'.
      5. In that question bank, return to 'Categories'.
      6. For category 'Category A (1)' select the "Delete" action.
      7. The prompt 'Delete category "Category A"?. Any child categories will be moved to this category's parent.' appears, approve by pushing the 'Delete' button.
      8. You are shown 'The category 'Category A' contains 2 questions (some of which may be hidden questions or random questions that are still in use in a quiz). Please choose another category to move them to.'

            Unassigned Unassigned
            lucaboesch Luca Bösch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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