Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 13 additions & 26 deletions components/ILIAS/Test/src/Results/Data/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,7 @@ private function buildAttemptResults(
);

// params of getSolutionOutput
$graphical_output = false;
$result_output = false;
$show_question_only = $settings->getQuestionTextOnly();
$show_feedback = false; //general
$show_correct_solution = false;
$show_manual_scoring = false;
$show_question_text = true;
$show_inline_feedback = true;

foreach ($results as $idx => $qresult) {
if (!is_numeric($idx)) {
Expand All @@ -227,20 +220,18 @@ private function buildAttemptResults(
$question->setShuffler($shuffle_trafo);
$question_gui->setObject($question);

$graphical_output = true;
$show_correct_solution = false;
$show_feedback = $settings->getShowFeedback();
$usr_solution = $question_gui->getSolutionOutput(
$active_id,
$attempt_id,
$graphical_output,
$result_output,
true,
false,
$show_question_only,
$show_feedback,
$show_correct_solution,
$show_manual_scoring,
$show_question_text,
$show_inline_feedback
false,
false,
true,
true
);

if ($test_obj->getAutosave() &&
Expand All @@ -260,21 +251,17 @@ private function buildAttemptResults(
);
}

$graphical_output = false;
$show_correct_solution = true;
$show_feedback = false;
$show_inline_feedback = false;
$best_solution = $question_gui->getSolutionOutput(
$active_id,
$attempt_id,
$graphical_output,
$result_output,
false,
false,
$show_question_only,
$show_feedback,
$show_correct_solution,
$show_manual_scoring,
$show_question_text,
$show_inline_feedback
false,
true,
false,
true,
false
);

if ($show_question_only) {
Expand Down