Skip to content

Commit

Permalink
Test: Fix Presentation of Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Dec 7, 2024
1 parent bc9559a commit c632f0a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Modules/Test/classes/Results/class.ilTestResultsFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ protected function buildPassResults(
$title = $qresult['title'];
$question_score = $qresult['max'];
$usr_score = $qresult['reached'];
$workedthrough = (bool)$qresult['workedthrough'];
$answered = (bool)$qresult['answered'];
$requested_hints = (int)$qresult['requested_hints'];
$workedthrough = (bool) $qresult['workedthrough'];
$answered = (bool) $qresult['answered'];
$requested_hints = (int) $qresult['requested_hints'];


$question_gui = $test_obj->createQuestionGUI("", $qid);
Expand All @@ -100,7 +100,7 @@ protected function buildPassResults(

$graphical_output = true;
$show_correct_solution = false;
$show_inline_feedback = $settings->getShowFeedback();
$show_feedback = $settings->getShowFeedback();
$usr_solution = $question_gui->getSolutionOutput(
$active_id,
$pass_id,
Expand Down Expand Up @@ -133,6 +133,7 @@ protected function buildPassResults(

$graphical_output = false;
$show_correct_solution = true;
$show_feedback = false;
$show_inline_feedback = false;
$best_solution = $question_gui->getSolutionOutput(
$active_id,
Expand Down Expand Up @@ -195,7 +196,7 @@ protected function getPassResultsSettings(
$show_optional_questions = true;
$show_best_solution = $is_user_output ?
$settings_result->getShowSolutionListComparison() :
(bool)ilSession::get('tst_results_show_best_solutions');
(bool) ilSession::get('tst_results_show_best_solutions');
$show_feedback = $settings_result->getShowSolutionFeedback();
$show_question_text_only = $settings_result->getShowSolutionAnswersOnly();
$show_content_for_recapitulation = $settings_result->getShowSolutionSuggested();
Expand Down

0 comments on commit c632f0a

Please sign in to comment.