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

Question: xml import of question creates erroneous categories

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5.2
    • 3.5, 3.6
    • Questions
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_35_STABLE
    • wip-MDL-63165-master
    • Moderate
    • Hide
      1. Create a new course
      2. Go to the course question bank
      3. On the categories tab, create a new category 'Apples', with parent = Top for course
      4. On the categories tab, create a new category 'Bananas', with parent = Apples
      5. Add a question to each of the categories, Apples and Bananas.
      6. Export, as xml format, and making sure to select 'Top for course' as the export category when exporting.
      7. Create a new course
      8. Go to question bank
      9. Select import tab, pick xml type and upload the file
      10. Go to 'Categories' tab and verify that 'Apples' category contains 1 question (see the (1)) and 'Bananas' another question (as in the original course)
        It should match this screenshot
      11. verify you don't see any 'top' category listed.
      Show
      Create a new course Go to the course question bank On the categories tab, create a new category 'Apples', with parent = Top for course On the categories tab, create a new category 'Bananas', with parent = Apples Add a question to each of the categories, Apples and Bananas. Export, as xml format, and making sure to select 'Top for course' as the export category when exporting. Create a new course Go to question bank Select import tab, pick xml type and upload the file Go to 'Categories' tab and verify that 'Apples' category contains 1 question (see the (1)) and 'Bananas' another question (as in the original course) It should match this screenshot verify you don't see any 'top' category listed.

      Regression from MDL-61132 I suspect. To replicate this:

      1. Create a new course
      2. Go to the course question bank
      3. On the categories tab, create a new category 'Apples', with parent = Top for course
      4. On the categories tab, create a new category 'Bananas', with parent = Apples
      5. Add a question to each of the categories, Apples and Bananas.
      6. Export, as xml format, and making sure to select 'Top for course' as the export category when exporting.
      7. Create a new course
      8. Go to question bank
      9. Select import tab, pick xml type and upload the file
      10. Observe the erroneous category display on the categories tab (see screenshot).

        1. categories_after_import.png
          24 kB
          Jake Dallimore
        2. screenshot-1.png
          100 kB
          Janelle Barcega
        3. xml_format_question_import_bug.png
          27 kB
          Jake Dallimore

            jb23347 John Beedell
            jaked Jake Dallimore
            Tim Hunt Tim Hunt
            David Monllaó David Monllaó
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h

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