Skip to content

Commit af30e8e

Browse files
committed
change display of part's general feedback in adaptive mode
1 parent a2b7d92 commit af30e8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

renderer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,10 @@ protected function part_general_feedback(question_attempt $qa, question_display_
10391039
// This is rather a hack, but it will probably work.
10401040
$renderer = $this->page->get_renderer('qbehaviour_adaptivemultipart');
10411041
$details = $qa->get_behaviour()->get_part_mark_details($part->partindex);
1042+
// The general feedback should not be shown if the answer can still be improved.
1043+
if ($details->improvable) {
1044+
return '';
1045+
}
10421046
$gradingdetailsdiv = $renderer->render_adaptive_marks($details, $options);
10431047
$state = $details->state;
10441048
}

0 commit comments

Comments
 (0)