MantisBT - AContent
View Issue Details
0005124AContentImport/Exportpublic2012-12-13 15:502013-03-15 10:53
greg 
cindy 
normalminoralways
closedfixed 
 
1.31.3 
0005124: Export CC QTI Fail
When CC is exported, with multiple choice test questions, the respcondition section of the QTI xml file is not appended. It would appear the $numchoices is not being set. See getChoices() in include/classes/testQuestions.class.php, passed to the M/C QTI template default/tests/test_questions/multichoice_qti_1p2.tmpl.php
<?php for ($i=0; $i < $this->num_choices; $i++): ?>
                    <?php if ($this->row['answer_'.$i]): ?>
                <respcondition title="CorrectResponse">
                    <conditionvar>
                        <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
                    </conditionvar>
                    <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>
                </respcondition>
                    <?php endif; ?>
                <?php endfor; ?>
No tags attached.
Issue History
2012-12-13 15:50gregNew Issue
2012-12-13 15:50gregStatusnew => assigned
2012-12-13 15:50gregAssigned To => cindy
2012-12-14 14:58cindyNote Added: 0005894
2012-12-14 14:58cindyStatusassigned => resolved
2012-12-14 14:58cindyResolutionopen => fixed
2013-03-15 10:49gregFixed in Version => 1.3
2013-03-15 10:53gregNote Added: 0006220
2013-03-15 10:53gregStatusresolved => closed

Notes
(0005894)
cindy   
2012-12-14 14:58   
Commit#: ac6ee8a8506c3ed23ced5cc34868a826c5406e70

Solution: The cause of this issue is, when importing a common cartrige that contains multiple choices questions, the answers for those questions are not imported in.

Affected script: include/classes/QTI/QTIParser.class.php
(0006220)
greg   
2013-03-15 10:53   
resolved in AContent 1.3