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

WEBCT IMPORT does NOT work for any question type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.3
    • Component/s: Questions
    • Labels:
      None
    • Environment:
      All

      Description

      The import process exit at line 320 when :TYPE: indicating the start of the first question (generally line 2 or 3) is found

      if (eregi(^:(TYPE/EOF):,$line)) {

      // New Question or End of File

      the code test for question components which are not found and exit. One simple way to correct this is to check that we are at least after the second line and replace by

      if (eregi(^:(TYPE/EOF):,$line) and $nLineCounter > 2)

      This will work also for files containing more than one question.

      We need also to convert to utf8 before doing the analysis.

      I propose the function utf8_encode_array() applied to $lines the array of $line.It is not in the current libs.

      This was applied to french questions with accents that are not correctly decode without the utf8 conversion.

      see the quizz forum for details and files

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Oct/07