Hi,

I have encountered the problem with feedback pages displaying n/a if users don't have access to input format (full html). Here is my solution with mentioned addinf of FALSE to check_markup:

in quiz.pages.inc I added it to the line 427. It should look like this:

$output .= '<div id="quiz_summary">'. check_markup($summary, $quiz->format, FALSE) .'</div><br />'."\n";

In multichoice.module (I use multichoice questions), I added it to the lines 1193, 1198 and 1203. Here is the code for the lines from 1193 to 1203:

    $cols[] = check_markup($answer['answer'], $answer['format'], FALSE);
    if ($showpoints) {
      $cols[] = $answer['is_correct'] ? theme_multichoice_selected() : theme_multichoice_unselected();
    }
    $cols[] = $answer['user_answer'] ? theme_multichoice_selected() : theme_multichoice_unselected();
    $cols[] = ($showfeedback && $answer['user_answer']) ? '<div class="quiz_answer_feedback">'. check_markup($answer['feedback'], $answer['format'], FALSE) .'</div>' : '';
    $rows[] = $cols;
  }

  // Add the cell with the question and the answers.
  $q_output = '<div class="quiz_summary_question"><span class="quiz_question_bullet">'. t('Q:') . '</span> '. check_markup($question->body, $question->format, FALSE)

It works great for me and I believe it's following the rules :)

Comments

stGeorge-1’s picture

This issue seems to be discussing the same bug as http://drupal.org/node/656186

falcon’s picture

Status: Active » Closed (duplicate)