Skip to content

Commit

Permalink
MDL-49913 mod_lesson: studentanswer format should be HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Michel Vedrine committed Apr 24, 2015
1 parent cb9d259 commit c914c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mod/lesson/pagetypes/matching.php
Expand Up @@ -193,6 +193,7 @@ public function check_answer() {
// get the user's exact responses for record keeping
$hits = 0;
$userresponse = array();
$result->studentanswerformat = FORMAT_HTML;
foreach ($response as $id => $value) {
if ($value == '') {
$result->noanswer = true;
Expand Down
1 change: 1 addition & 0 deletions mod/lesson/pagetypes/multichoice.php
Expand Up @@ -163,6 +163,7 @@ public function check_answer() {
$wronganswerid = 0;
// store student's answers for displaying on feedback page
$result->studentanswer = '';
$result->studentanswerformat = FORMAT_HTML;
foreach ($answers as $answer) {
foreach ($studentanswers as $answerid) {
if ($answerid == $answer->id) {
Expand Down

0 comments on commit c914c92

Please sign in to comment.