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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Quiz
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-62149-master

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ryanwyllie Ryan Wyllie
                Reporter:
                ryanwyllie Ryan Wyllie
                Peer reviewer:
                Tim Hunt
                Integrator:
                Andrew Nicols
                Tester:
                Anna Carissa Sadia
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m