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

Duplicated quizzes reuse qtype_random (and should not)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7, 3.1.1, 3.2.5, 3.3.6, 3.4.3, 3.5
    • Fix Version/s: 3.4.5, 3.5.2
    • Component/s: Backup, Questions, Quiz
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a new site running 3.4
      2. Create a quiz in a course.
      3. Add one or more random questions.
      4. Duplicate the quiz
        1. Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same
          In Moodle 3.4, you can see this by hovering over the edit link for the question on the Edit quiz page.
      5. Upgrade to Moodle 3.5
      6. Duplicate the original quiz
        1. Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same
      7. Upgrade to Moodle master
      8. Duplicate the original quiz
        1. Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same
      Show
      Create a new site running 3.4 Create a quiz in a course. Add one or more random questions. Duplicate the quiz Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same In Moodle 3.4, you can see this by hovering over the edit link for the question on the Edit quiz page. Upgrade to Moodle 3.5 Duplicate the original quiz Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same Upgrade to Moodle master Duplicate the original quiz Confirm that, in the duplicate, the id of the random questions is different from the question ids in the original, but all the settings are the same
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull Master Branch:

      Description

      See commit:
      https://github.com/moodle/moodle/commit/f59dba84
      And ticket MDL-11398 for background of why we don't want to reuse randoms.

      Basically when you duplicate (or backup/restore) a quiz that has a random question in it, it will reuse the existing one instead of creating a new one. This means that if you go into one quiz, and change the 'include sub categories' option, it will effect the other quiz too.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              emerrill Eric Merrill
              Peer reviewer:
              Eloy Lafuente (stronk7)
              Integrator:
              Andrew Nicols
              Tester:
              Shamim Rezaie
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              10 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18