Skip to content
Permalink
Browse files Browse the repository at this point in the history
Test: String handling in cloze question
  • Loading branch information
mjansenDatabay authored and bheyser committed Dec 11, 2018
1 parent 805408b commit f1c2f90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/TestQuestionPool/classes/class.assClozeTestGUI.php
Expand Up @@ -1571,7 +1571,7 @@ public function getAggregatedAnswersView($relevant_answers)
foreach($gap->getItems($this->object->getShuffler()) as $gap_item)
{
$aggregate = $aggregation[$i];
$html .= '<li>' . $gap_item->getAnswerText() . ' - ' . ($aggregate[$j] ? $aggregate[$j] : 0) . '</li>';
$html .= '<li>' . ilUtil::prepareFormOutput($gap_item->getAnswerText()) . ' - ' . ($aggregate[$j] ? $aggregate[$j] : 0) . '</li>';
$j++;
}
$html .= '</ul>';
Expand All @@ -1597,8 +1597,8 @@ public function getAggregatedAnswersView($relevant_answers)
$show_mover = ' style="display: none;" ';
}

$html .= '<li>' . $answer . ' - ' . $count
. '&nbsp;<button class="clone_fields_add btn btn-link" ' . $show_mover . ' data-answer="'.$answer.'" name="add_gap_'.$i.'_0">
$html .= '<li>' . ilUtil::prepareFormOutput($answer) . ' - ' . $count
. '&nbsp;<button class="clone_fields_add btn btn-link" ' . $show_mover . ' data-answer="'.ilUtil::prepareFormOutput($answer).'" name="add_gap_'.$i.'_0">
<span class="sr-only"></span><span class="glyphicon glyphicon-plus"></span></button>
</li>';
}
Expand All @@ -1615,7 +1615,7 @@ public function getAggregatedAnswersView($relevant_answers)
$aggregate = (array)$aggregation[$i];
foreach($aggregate as $answer => $count)
{
$html .= '<li>' . $answer . ' - ' . $count . '</li>';
$html .= '<li>' . ilUtil::prepareFormOutput($answer) . ' - ' . $count . '</li>';
}
$j++;
}
Expand Down

0 comments on commit f1c2f90

Please sign in to comment.