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

Minor problems with GIFT import and export

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3
    • 2.1
    • Questions
    • MOODLE_20_STABLE
    • MOODLE_21_STABLE
    • Hide

      1) Login as teacher on qa.moodle.net
      2) In Features Demo course, export the questions in GIFT format
      3) Attempt to import the downloaded file into another class

      Show
      1) Login as teacher on qa.moodle.net 2) In Features Demo course, export the questions in GIFT format 3) Attempt to import the downloaded file into another class

    Description

      On qa.moodle.net, I exported the 4 questions in the question bank. The matching question has a blank question for which the answer is chat. When this is exported to GIFT nothing is there and thus it breaks the file on import. See below what gets exported:

      // question: 2 name: Moodle activities
      ::Moodle activities::[html]<div class\="text_to_html">Match the activity to the description.</div>{
      =<div class
      ="text_to_html">An activity supporting asynchronous discussions.</div> -> Forum
      =<div class
      ="text_to_html">A teacher asks a question and specifies a choice of multiple responses.</div> -> Choice
      =<div class
      ="text_to_html">A bank of record entries which participants can add to.</div> -> Database
      =<div class
      ="text_to_html">A collection of web pages that anyone can add to or edit.</div> -> Wiki
      = -> Chat
      }

      I'm not sure how you want to handle this scenario. Perhaps do a quick check that the question is not empty and if it is export a single   or something. This seems like a somewhat unlikely case but since it came up during QA testing I'm setting the priority to major. Peace - Anthony

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              aborrow Anthony Borrow
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Nobody Nobody
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Jul/11