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

Minor problems with GIFT import and export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.1
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      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

              Assignee:
              timhunt Tim Hunt
              Reporter:
              aborrow Anthony Borrow
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                1/Jul/11