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

Hidden questions should not be included when exporting from the question bank

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-82875_403
    • MDL-82875_404
    • Hide

      Covered by PHPUnit.

       

      For manual testing:

      1. Create a category in the question bank.
      2. Add at least two questions to the category you’ve created. Your category should then show the count as 2.
      3. Create a quiz and add those two questions from your category.
      4. Return to the question bank, confirm that your question category still shows 2 questions. Try to delete one of the questions. The system will show you a message indicating that instead of completely deleting the question, it will be hidden. Click "Delete."
      5. In the question bank, with your category selected, change the filters to show hidden questions. Confirm that you can see one question visible and the other is hidden (greyed out). The category count should show 1.
      6. Export questions from your category using the Moodle XML format. After it’s completed, open the exported file and Confirm that it contains the ready question with <hidden>0</hidden> (the hidden ones are not exported).
      Show
      Covered by PHPUnit.   For manual testing: Create a category in the question bank. Add at least two questions to the category you’ve created. Your category should then show the count as 2. Create a quiz and add those two questions from your category. Return to the question bank, confirm that your question category still shows 2 questions. Try to delete one of the questions. The system will show you a message indicating that instead of completely deleting the question, it will be hidden. Click "Delete." In the question bank, with your category selected, change the filters to show hidden questions. Confirm that you can see one question visible and the other is hidden (greyed out). The category count should show 1. Export questions from your category using the Moodle XML format. After it’s completed, open the exported file and Confirm that it contains the ready question with <hidden>0</hidden> (the hidden ones are not exported).

      When exporting Questions from a Category via Moodle XML Format, Hidden Questions are also exported, Despite the category count reflecting only visible questions.

      To reproduce the bug

      1. Create a category in the question bank.
      2. Add at least two questions to the category you’ve created. Your category should then show the count as 2.
      3. Create a quiz and add those two questions from your category.
      4. Return to the question bank, confirm that your question category still shows 2 questions. Try to delete one of the questions. The system will show you a message indicating that instead of completely deleting the question, it will be hidden. Click "Delete."
      5. In the question bank, with your category selected, change the filters to show hidden questions. Confirm that you can see one question visible and the other is hidden (greyed out). The category count should show 1.
      6. Export questions from your category using the Moodle XML format. After it’s completed, open the exported file, which should contain two questions, both with <hidden>0</hidden> (indicating not hidden).

      In the exported file, both questions have <hidden>0</hidden>, which means they are set to visible. However, the one question is actually a hidden question in the system.

      The issue arises because users exporting the questions may not be aware that the category contains hidden questions.

            vithushau Vithusha Kethiri
            vithushau Vithusha Kethiri
            Brendan Heywood Brendan Heywood
            Tim Hunt Tim Hunt
            CiBoT CiBoT
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 minutes
                7m

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