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

Error when adding random questions to a quiz using a "top" question category

XMLWordPrintable

    • MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-83264-403-1
    • MDL-83264-404-1
    • MDL-83264-main-1
    • Hide
      1. Create a new course and go to the question bank.
      2. Select "Categories" in the menu and add a category (cat1, cat2) in the "Top for course" category:
      3. On each category, create two true/false questions (cat1-q2, cat1-q2, cat2-q1, cat2-q2)
      4. For each question, click on "Edit > Manage tags" and add t1 tag to cat1-q1 and cat2-q1 and t2 tag to cat1-q2 and cat2-q2
      5. Back to the course, create a Quiz and click "Add question"
      6. Click on "Add > a random question"
      7. Select "Top for course" from the category filter and click "Apply filters".
      8. Click "Add condition" to filter by tag.
      9. Select t1 and click "Apply filters".
      10. Click "Add random question".
        • Verify that the random question is created successfully without any errors.

      The remaining functionality is covered by automated tests.

      Show
      Create a new course and go to the question bank. Select "Categories" in the menu and add a category ( cat1 , cat2 ) in the "Top for course" category: On each category, create two true/false questions (cat1-q2, cat1-q2, cat2-q1, cat2-q2) For each question, click on "Edit > Manage tags" and add t1 tag to cat1-q1 and cat2-q1 and t2 tag to cat1-q2 and cat2-q2 Back to the course, create a Quiz and click "Add question" Click on "Add > a random question" Select "Top for course" from the category filter and click "Apply filters". Click "Add condition" to filter by tag. Select t1 and click "Apply filters". Click "Add random question". Verify that the random question is created successfully without any errors. The remaining functionality is covered by automated tests.
    • 3
    • Team Alpha - Sprint 3 I3-2024

      Discovered by meowmiomew and myself while testing MDLQA-19249.

      There are a couple of issues:

      1) On step 5 I'm not able to filter by a tag, even though it's showing in the related question:

      And inspecting the browser console I can see a JS error:

      Note: This issue has been already reported in https://tracker.moodle.org/browse/MDL-82477.

      2) An error occurs when trying to create a random question in a quiz from a 'top' category that includes subcategories with tagged questions.

      Steps to reproduce the problem:

      1. Create a new course and go to the question bank.
      2. Select "Categories" in the menu and add a category (cat1, cat2) in the "Top for course" category:
      3. On each category, create two true/false questions (cat1-q2, cat1-q2, cat2-q1, cat2-q2)
      4. For each question, click on "Edit > Manage tags" and add t1 tag to cat1-q1 and cat2-q1 and t2 tag to cat1-q2 and cat2-q2
      5. Back to the course, create a Quiz and click "Add question"
      6. Click on "Add > a random question"
      7. Select "Top for course" from the category filter and click "Apply filters".
      8. Click "Add condition" to filter by tag.
      9. Select t1 and click "Apply filters".
      10. Click "Add random question".
      11. Result: The following error is displayed:

            Geshoski Mihail Geshoski
            lameze Simey Lameze
            Tim Hunt Tim Hunt
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 4 hours
                1d 4h

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