Skip to content

Commit

Permalink
MDL-16527 "responses report : use question_get_feedback_class and que…
Browse files Browse the repository at this point in the history
…stion_get_feedback_image from questionlib.php instead of custom styles" should not style response or add feedback image if the response is not yet graded.
  • Loading branch information
jamiesensei committed Sep 22, 2008
1 parent 1cb1f98 commit e1d2278
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/quiz/report/responses/responses_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,11 @@ function other_cols($colname, $attempt){
$questionclass = "que";
$response = format_text($response, FORMAT_MOODLE, $format_options);
if ($response){
return "<span class=\"$questionclass\"><span class=\"$qclass\">".$response."</span></span>$feedbackimg";
if (question_state_is_graded($stateforqinattempt)){
return "<span class=\"$questionclass\"><span class=\"$qclass\">".$response."</span></span>$feedbackimg";
} else {
return $response;
}
} else {
return '';
}
Expand Down

0 comments on commit e1d2278

Please sign in to comment.