Moodle

restoring quiz overwrites questions everywhere

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.6
  • Fix Version/s: None
  • Component/s: Questions
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_16_STABLE

Description

I have a published category of questions, originally created in course 1. At some point, I moved the quiz using these questions to course 2, although I am not sure if this detail matters in the overall problem. Now, I restored an older version of the quiz from course 2 from a backup made 2 months ago to course 3. Several questions had changed since two months ago. However, with restoration of the old backup of those questions, the newer version of the questions was replaced by the older version everywhere I can access the questions from, whether it be course 1, course 2 or course 3.

Now, I should say this actually was the behavior I wanted to happen because it was the easiest way for me to restore my screwed up cloze questions back to the way I wanted them. However, it doesn't seem to me that this is the behavior that should happen. It seems dangerous that questions that could be used in other courses could be overwritten simply by a teacher in a different course restoring the quiz using those questions.

Issue Links

Activity

Hide
Paulo Matos added a comment -

I've experiencied a strange behviour similar to the one described here while fixing MDL-5482.
(ref to patch // Fixing bug #5482: random questions have parent field set to its own id)

Show
Paulo Matos added a comment - I've experiencied a strange behviour similar to the one described here while fixing MDL-5482. (ref to patch // Fixing bug #5482: random questions have parent field set to its own id)

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: