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

True/False imported from Blackboard all True

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.6.3
    • 1.6
    • Quiz
    • None
    • Linux
    • MySQL
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE

      When importing quizes in the Bb6+ format moodle fails to correctly recognise the value of the correct answer for True/False questions, defaulting all correct answers to True. A comment in the code seems to assume that order determines the proper value, but the value is encoded in the xml. The following patch fixed the problem for me.

      diff --git a/question/format/blackboard_6/format.php b/question/format/blackboard_6/format.php

      index af27295..c935140 100644

      — a/question/format/blackboard_6/format.php

      +++ b/question/format/blackboard_6/format.php

      @@ -525,7 +525,7 @@ function process_tf($quest, &$questions)

      $question->name = $question->questiontext;

      // first choice is true, second is false.

      • if ($quest->responses[0]->fraction == 1) {

      + if ($quest->responses[0]>fraction == 1 && $quest>responses[0]->ident[0] == 'true')

      { $correct = true; }

      else {

            howardsmiller Howard Miller
            imported Imported (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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