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

Duplicated quizzes reuse qtype_random (and should not)

XMLWordPrintable

    • MOODLE_27_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • 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

      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.

            timhunt Tim Hunt
            emerrill Eric Merrill
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Shamim Rezaie Shamim Rezaie
            Votes:
            10 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

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