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

Moodle XML import/export doesn't save category description

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.9, 2.2, 2.6.3, 3.4.1, 3.6
    • Fix Version/s: 3.6
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. As a teacher or manager on a course (course1), navigate to the Question bank
      2. Create some base data (questions and question categories)
        • Create several nested categories e.g.
          1. Apples (Parent - Top, Category info - Description - add short descriptive text)
          2. Bananas (Parent - Apples, Description not empty)
          3. Carots (Parent - Bananas, Description not empty)
        • Create some questions in each of these categories (keep questions simple).
      3. Create an Export file
        • On the Export tab in the Question bank
        • Select Moodle XML format and Export category: Top for {your course name}
        • Click Export questions to file
        • Check the export file is now in your downloads folder
      4. Navigate to another course (course2) with none of this base data
      5. Import the base data using the data in the Export file created earlier
        • Navigate to the Question bank
        • Go to the Import tab in the Question bank
          1. Select Moodle XML format
          2. Select file you downloaded earlier
        • Click Import
      6. Check that all the questions and categories you created in course1 are all re-created again in course2
      7. Particularly check that the question categories have their descriptions.
      Show
      As a teacher or manager on a course (course1), navigate to the Question bank Create some base data (questions and question categories) Create several nested categories e.g. Apples (Parent - Top, Category info - Description - add short descriptive text) Bananas (Parent - Apples, Description not empty) Carots (Parent - Bananas, Description not empty) Create some questions in each of these categories (keep questions simple). Create an Export file On the Export tab in the Question bank Select Moodle XML format and Export category: Top for {your course name} Click Export questions to file Check the export file is now in your downloads folder Navigate to another course (course2) with none of this base data Import the base data using the data in the Export file created earlier Navigate to the Question bank Go to the Import tab in the Question bank Select Moodle XML format Select file you downloaded earlier Click Import Check that all the questions and categories you created in course1 are all re-created again in course2 Particularly check that the question categories have their descriptions.
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_22_STABLE, MOODLE_26_STABLE, MOODLE_34_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-23545-master

      Description

      When question category descriptions were added Moodle XML import/export format missed this...
      So it saves only name of the category.
      Should be easy to fix thought....

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              oa_sychev Oleg Sychev
              Peer reviewer:
              Tim Hunt
              Integrator:
              Jun Pataleta
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 20 minutes
                  20m