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

Do a database update to fix random questions with the wrong parent.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In Moodle, all random questions should have question.parent set to be the same as question.id. One effect of MDL-5482 is that this will not be true for questions that were backed up then restored. The probably does not cause many problems, except occasionally, if the bogus question.parent happens to point to a multianswer question type, or when you try to do a subsequent backup. Anyway, these question.parent values should be fixed.

      Unfortunately, at the moment, the main version number is 2007101509, so there is not a spare number before 1.9.1. However 1.9.1 is meant to be close, so I may check in the update code with an if ($oldversion < 2007101510) but not upgrade version.php. That will mean that this upgrade gets run the next time anyone else updates the version number, which is good enough on the branch. I will update the version number on HEAD.

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Tester:
              Petr Skoda
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/May/08