I also have an import bug for Aiken. Mine is using the latest 6.3 dev release.

When importing using this method, the question before tells the next question how many ABCD's there will be.

For example I imported the following.

What percentage of infertility is related to male factor alone?
A. Less than 15%
B. Greater than 90%
C. 5-29%
D. 30-40%
ANSWER: D

There has been a significant decline in sperm density (count) the past 60 years
A. True
B. False
ANSWER: A

But after the import, the actual quiz module shows this (i've bolded the errors):

What percentage of infertility is related to male factor alone?
A. Less than 15%
B. Greater than 90%
C. 5-29%
D. 30-40%
ANSWER: D

There has been a significant decline in sperm density (count) the past 60 years
A. True
B. False
C. 5-29%
D. 30-40%

ANSWER: A

Since the first question has ABCD, but the next question only has AB, the module seems to copy the CD from the question before.

This second question should only have A and B. But after importing, it added C and D from the question directly before it. It seems to do this consistently.

I hope this is clear enough for a fix. Ive got about 50 quizes I need to import but cannot because of this bug. It does not seem to be an issue when the question before has less ABCD's than the next question. (Or, if all the questions have the same number of ABCDs).

Thank you for anything you can do to resolve this.

Comments

srikanthlogic’s picture

I am not sure if this exists in 6.4 since i have imported these kind of questions without any issues.

mach5_kel’s picture

Good to know, but that doesnt help 6.3.

I know that new features are not being added, but bugs are still being fixed. Otherwise it should be marked as no longer supported (which I dont think is the case).

Any movement on this one? Thanks :D

L0rne’s picture

The following fixes the problem.
in the file "questions_import.admin.inc", in the function "questions_import_submit_aiken", add the line

$options = array();

as below:

      // now $line is left only with choices which looks like A) Moodle B) ATutor C) Claroline D) Blackboard etc
      $options = array(); // reset options array - L0rne  http://drupal.org/node/744076
      foreach ($line as $l) {
        $option = explode($l[1], $l);
        $options[trim($option[0])] = trim($option[1]);
      }

I would do up a patch, but I mangled my copy of "questions_import.admin.inc" looking for the problem. I'll grab a new copy and post a patch if I get some time.

falcon’s picture

Issue tags: +toBeClosed, +FixedIn4

This issue will be closed when Quiz 4 is released.

falcon’s picture

Project: Quiz » Quiz EI
Version: 6.x-3.x-dev » 6.x-4.0-alpha1
Component: Code - Import/Export » Code