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

Import of .dat files is broken in blackboard_six import format

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.7, 2.4.4, 2.5
    • 2.3.7, 2.4.4
    • Questions
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      Verify that import of the 2 files in question/format/blackboard_six/tests/fixtures/ subdirectory is not producing any error or warning.

      Show
      Verify that import of the 2 files in question/format/blackboard_six/tests/fixtures/ subdirectory is not producing any error or warning.

    Description

      This is a regression from MDL-38388.
      Import of .zip archives is working as expected, but import of .dat files is broken.
      Notice: Undefined variable: text in C:\wamp\www\moodle_head\question\format\blackboard_six\format.php on line 81
      Call Stack

      1. Time Memory Function Location
        1 0.0028 743760 {main}( ) ..\import.php:0
        2 1.8617 82028992 qformat_default->importprocess( ) ..\import.php:119
        3 1.8620 82029176 qformat_blackboard_six->readdata( ) ..\format.php:298

        Notice: Undefined variable: text in C:\wamp\www\moodle_head\question\format\blackboard_six\format.php on line 84
        Call Stack
        # Time Memory Function Location
        1 0.0028 743760 {main}

        ( ) ..\import.php:0
        2 1.8617 82028992 qformat_default->importprocess( ) ..\import.php:119
        3 1.8620 82029176 qformat_blackboard_six->readdata( ) ..\format.php:298
        fileobj type not recognised

      line 182 of \question\format\blackboard_six\format.php: call to debugging()
      line 303 of \question\format.php: call to qformat_blackboard_six->readquestions()
      line 119 of \question\import.php: call to qformat_default->importprocess()

      Attachments

        Issue Links

          Activity

            People

              jmvedrine Jean-Michel Vedrine
              jmvedrine Jean-Michel Vedrine
              Tim Hunt Tim Hunt
              Sam Hemelryk Sam Hemelryk
              Rossiani Wijaya Rossiani Wijaya
              Safat Shahin, Tim Hunt, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Kevin Percy, Laurent David, Mathew May, Mihail Geshoski, Raquel Ortega, Sabina Abellan, Sander Bangma, Sara Arjona (@sarjona), Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/13