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

Missing rule BOOKCHAPTER restoring a 1.9 backup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3.3
    • 2.3.1
    • Book
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • MDL-35007-master
    • Hide
      1. Run upgrades on all branches before proceeding with the testing
      2. install book module on your 1.9 install http://moodle.org/plugins/pluginversions.php?plugin=mod_book
      3. create a book instance
      4. create a lesson and add a question page to the lesson, add a link to the book chapter (not book index, must have chapterid in url) in the question description
      5. backup the course with all defaults
      6. Restore the course as "new course" in 2.3/master
      7. Go to the lesson and make sure the link to book module now points to the restored book module in the course and doesnt say something like $@BOOKCHAPTER*7@$
      Show
      Run upgrades on all branches before proceeding with the testing install book module on your 1.9 install http://moodle.org/plugins/pluginversions.php?plugin=mod_book create a book instance create a lesson and add a question page to the lesson, add a link to the book chapter (not book index, must have chapterid in url) in the question description backup the course with all defaults Restore the course as "new course" in 2.3/master Go to the lesson and make sure the link to book module now points to the restored book module in the course and doesnt say something like $@BOOKCHAPTER*7@$

      The problem is that we do not handle BOOKCHAPTER restore_decode_rule rules that are generated in a Moodle 1.9 backup when there are links to book chapters.

      Replication steps:

      1. install book module in Moodle 1.9 (install http://moodle.org/plugins/pluginversions.php?plugin=mod_book)
      2. create a book instance
      3. create a Web page resource
      4. in the label add a link to the book chapter
      5. backup the course with all defaults
      6. Restore the course as "new course" in 2.3
      7. check the restored Page resource

      Expected result: the link to book module should point to the restored book chapter

      Actual result: the link is replace with something like $@BOOKCHAPTER*7@2$

            ankit_frenz Ankit Agarwal
            ankit_frenz Ankit Agarwal
            Rossiani Wijaya Rossiani Wijaya
            Sam Hemelryk Sam Hemelryk
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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