http://atutor.ca/atutor/mantis/view.php?id=4610
authorcindy li <cli@ocad.ca>
Thu, 9 Dec 2010 15:30:05 +0000 (15:30 -0000)
committercindy li <cli@ocad.ca>
Thu, 9 Dec 2010 15:30:05 +0000 (15:30 -0000)
"feedback" field in open end question type is missing from the test export package. The feedback fields of other question types are exported properly.

docs/themes/default/test_questions/long_qti_1p2.tmpl.php

index 1e3a32a..91e2d77 100644 (file)
                                        </response_str>
                                </flow>
                        </presentation>
+               <?php if ($this->row['feedback']): ?>
+                       <itemfeedback ident="FEEDBACK">
+                               <solution>
+                                       <solutionmaterial>
+                                               <flow_mat>
+                                                       <material>
+                                                               <mattext texttype="text/html"><?php echo $this->row['feedback']; ?></mattext>
+                                                       </material>
+                                               </flow_mat>
+                                       </solutionmaterial>
+                               </solution>
+                       </itemfeedback>
+               <?php endif; ?>
                </item>