Permalink
Browse files

Issue-4949: Fixed the issue that images in the test questions don't s…

…how up.
  • Loading branch information...
Cindy Qi Li
Cindy Qi Li committed Feb 14, 2012
1 parent 1b72d52 commit 101e21a02abac287cf277f4aa35b70a0b3dba035
@@ -362,6 +362,8 @@
$_field_formatting['tests_answers.answer'] = AT_FORMAT_NONE;
$_field_formatting['tests_answers.notes'] = AT_FORMAT_ALL;
$_field_formatting['tests_questions.*'] = AT_FORMAT_ALL | AT_FORMAT_QUOTES;
+// This constant is used to in the test question template scripts to display the preview and result.
+$_field_formatting['tests_questions.quotesNotConverted'] = AT_FORMAT_ALL;
$_field_formatting['tests_questions_categories.title'] = AT_FORMAT_NONE;
$_field_formatting['photo_albums.*'] = AT_FORMAT_QUOTES;
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ul style="padding: 0px; margin: 0px; list-style-type: none">
<?php for ($i=0; $i < $this->num_choices; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ul style="padding: 0px; margin: 0px; list-style-type: none">
<?php for ($i=0; $i < 10; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<?php if ($this->row['properties'] == 1): /* one word */ ?>
<input type="text" name="answers[<?php echo $this->row['question_id']; ?>]" class="formfield" size="15" value="<?php echo htmlspecialchars($this->response); ?>" />
@@ -1,3 +1,3 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<p style="font-family: curior new; font-size: medium"><?php echo AT_print($this->answer, 'tests_answers.answer'); ?></p>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<table style="width: 100%">
<tr>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<table style="width: 100%">
<tr>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<?php $tmp_response = implode('|', $this->response); ?>
<?php $_SESSION['dd_question_ids'][$this->row['question_id']] = 1; ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<input type="hidden" name="answers[<?php echo $this->row['question_id']; ?>][]" value="-1" />
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ul style="padding: 0px; margin: 0px; list-style-type: none">
<?php for ($i=0; $i < $this->num_choices; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ul style="padding: 0px; margin: 0px; list-style-type: none">
<?php for ($i=0; $i < 10; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ul style="padding: 0px; margin: 0px; list-style-type: none">
<?php for ($i=0; $i < $this->num_choices; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<ol style="margin: 0px; padding: 0px">
<?php for ($i=0; $i < $this->num_choices; $i++): ?>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<p><input type="radio" name="answers[<?php echo $this->row['question_id']; ?>]" value="1" id="choice_<?php echo $this->row['question_id']; ?>_0" <?php if ($this->response == 1):?>checked="checked"<?php endif; ?>/><label for="choice_<?php echo $this->row['question_id']; ?>_0"><?php echo _AT('true'); ?></label></p>
@@ -1,4 +1,4 @@
-<p><?php echo AT_print($this->row['question'], 'tests_questions.question'); ?></p>
+<p><?php echo AT_print($this->row['question'], 'tests_questions.quotesNotConverted'); ?></p>
<p>
<?php if (($this->row['answer_0'] == 1) && ($this->answers == 1)): ?>

0 comments on commit 101e21a

Please sign in to comment.