Moodle
  1. Moodle
  2. MDL-27764

Topic Summary Restore/Import Problem

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1.3, 2.2.1, 2.3
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Backup
    • Environment:
      Ubuntu Server 11.04, Apache
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1) Create one new course ("orig") with 3 topics on it. Edit sections 2 & 3 and put some name and summary on them.

      2) Perform one backup of that course, don't need to include any activity nor user information, but you can if you want.

      3) Restore the backup created in 2) to new course.
      4) TEST: the names and summaries of section 2 & 3 are restored.

      5) Create one new course with any number of topics on it. Edit section 2 and put some name and summary on it.
      6) Restore the backup created in 2) into the course created in 5), adding information.
      7) TEST: Section 2 name and summary are unmodified, showing the information introduced in 5)
      8) TEST: Section 3 name and summary have been added, showing the information coming from 1)

      9) Restore the backup created in 2) into the course created in 5), deleting information.
      10) TEST: Both section 2 and 3 names and summaries have been added, showing the information coming from 1)

      11) Edit the course created in 1) ("orig") and add some image to the section 2 summary.
      12) Create one new course with any number of topics on it. Edit section 3 and put some name and summary on it.
      13) From the course created in 12), import information from the course created in 1)
      14) TEST: Section 3 name and summary are unmodified, showing the information introduced in 12)
      15) TEST: Section 2 name and summary have been added, showing the information coming from 1)
      16) TEST: The image added to section 2 summary by 11) is also displayed properly after import.

      That is, all types of restore, with and without pre-existing information in target sections.

      Ciao

      Show
      1) Create one new course ("orig") with 3 topics on it. Edit sections 2 & 3 and put some name and summary on them. 2) Perform one backup of that course, don't need to include any activity nor user information, but you can if you want. 3) Restore the backup created in 2) to new course. 4) TEST: the names and summaries of section 2 & 3 are restored. 5) Create one new course with any number of topics on it. Edit section 2 and put some name and summary on it. 6) Restore the backup created in 2) into the course created in 5), adding information. 7) TEST: Section 2 name and summary are unmodified, showing the information introduced in 5) 8) TEST: Section 3 name and summary have been added, showing the information coming from 1) 9) Restore the backup created in 2) into the course created in 5), deleting information. 10) TEST: Both section 2 and 3 names and summaries have been added, showing the information coming from 1) 11) Edit the course created in 1) ("orig") and add some image to the section 2 summary. 12) Create one new course with any number of topics on it. Edit section 3 and put some name and summary on it. 13) From the course created in 12), import information from the course created in 1) 14) TEST: Section 3 name and summary are unmodified, showing the information introduced in 12) 15) TEST: Section 2 name and summary have been added, showing the information coming from 1) 16) TEST: The image added to section 2 summary by 11) is also displayed properly after import. That is, all types of restore, with and without pre-existing information in target sections. Ciao
    • Workaround:
      Hide

      One way to get around this issue is to use labels instead of the summary. These are imported correctly. This still leaves out the topic heading and you will have to fix topics already using summaries.

      Show
      One way to get around this issue is to use labels instead of the summary. These are imported correctly. This still leaves out the topic heading and you will have to fix topics already using summaries.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
    • Rank:
      17421

      Description

      When importing a topic (or section) from another course into your own course, You would expect the Topic Heading and summary to be imported as well. Currently it is not.

      When Restoring a course into your own (by merging) you would expect topic headings and summaries to be restored as well. They currently are not.

      Some things of interest:
      When restoring a course as a new course, the headings and summaries ARE restored.

      When restoring a course into your course (Using "Merge the backup course into this course"), if you select yes for "Overwrite course configuration" on the Schema page, the topic heading and summary will be restored correctly. This is not a real workaround however because all the course settings will be changed and this could have disastrous effects.

      1. MDL-27764_section_summaries_moodle22.patch
        9 kB
        mikehas
      1. 1_course_selection.png
        28 kB
      2. 2_import_settings.png
        31 kB
      3. 3_section_item_settings.png
        55 kB
      4. 4_import_confirmation.png
        43 kB

        Issue Links

          Activity

            People

            • Votes:
              47 Vote for this issue
              Watchers:
              30 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: