Skip to content

Commit

Permalink
Test: Fix Reload on Cancel in Recap
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Nov 29, 2024
1 parent 8afa863 commit 6977315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/TestQuestionPool/classes/class.assQuestionGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,9 @@ public function suggestedsolution(): void
$solution_array['type'] = '';
}

$solution_type = $this->request->raw('solutiontype');
$solution_type = $this->ctrl->getCmd() === 'cancelSuggestedSolution'
? $solution_array["type"]
: $this->request->raw('solutiontype');
if (is_string($solution_type) &&
strcmp($solution_type, "file") == 0 &&
strcmp($solution_array["type"], "file") != 0) {
Expand Down

0 comments on commit 6977315

Please sign in to comment.