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

Questions link for random question slot on quiz edit page doesn't include tags in filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 3.8.3
    • Quiz
    • None
    • Open LMS
    • MySQL
    • MOODLE_38_STABLE
    • Hide

      None

      Show
      None
    • Hide

      Set up

      1. Log in as admin
      2. Create a course (c1)
      3. View the question bank questions for c1
        1. View course c1
        2. edit cog > more > question bank > questions
      4. Create 3 questions in the “Default for c1” category
        1. question 1 with no tags
        2. question 2 with the tag “foo”
        3. question 3 with the tags “foo” and “bar”
      5. Create a quiz activity (quiz1)
      6. Edit the quiz

      Random question no tags

      1. Add a random question to quiz1 from the “Default for c1” category and no tags specified
      2. Click the “(See questions)” link next to the random question you just added
      3. CONFIRM that you are taken to the question bank page and no tags are added to the filter. You should see all 3 questions

      Random question single tag

      1. Add a random question to quiz1 from the “Default for c1” category and add the tag “foo” to the filter
      2. Click the “(See questions)” link next to the random question you just added
      3. CONFIRM that you are taken to the question bank page and the tag “foo” is in the filter. You should see questions 2 and 3

      Random question multiple tags

      1. Add a random question to quiz1 from the “Default for c1” category and add the tags “foo” and “bar” to the filter
      2. Click the “(See questions)” link next to the random question you just added
      3. CONFIRM that you are taken to the question bank page and the tags “foo” and “bar” are in the filter. You should only see questions 3
      Show
      Set up Log in as admin Create a course (c1) View the question bank questions for c1 View course c1 edit cog > more > question bank > questions Create 3 questions in the “Default for c1” category question 1 with no tags question 2 with the tag “foo” question 3 with the tags “foo” and “bar” Create a quiz activity (quiz1) Edit the quiz Random question no tags Add a random question to quiz1 from the “Default for c1” category and no tags specified Click the “(See questions)” link next to the random question you just added CONFIRM that you are taken to the question bank page and no tags are added to the filter. You should see all 3 questions Random question single tag Add a random question to quiz1 from the “Default for c1” category and add the tag “foo” to the filter Click the “(See questions)” link next to the random question you just added CONFIRM that you are taken to the question bank page and the tag “foo” is in the filter. You should see questions 2 and 3 Random question multiple tags Add a random question to quiz1 from the “Default for c1” category and add the tags “foo” and “bar” to the filter Click the “(See questions)” link next to the random question you just added CONFIRM that you are taken to the question bank page and the tags “foo” and “bar” are in the filter. You should only see questions 3

      When adding a random question by tag to a quiz the "See questions" link doesn't include the tag ids of the tags so when it links to the question bank the correct tag filters are not applied.

      This issue was closed in MDL-62149 but seems to have re-surfaced

        1. screenshot-2.png
          screenshot-2.png
          17 kB
        2. screenshot-1.png
          screenshot-1.png
          4 kB
        3. random_question.png
          random_question.png
          160 kB
        4. question_bank.png
          question_bank.png
          312 kB

            Unassigned Unassigned
            leetaylor1 Lee Taylor
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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