Skip to content

Commit

Permalink
Fixes Shown Preview Page when Locking is Enabled #4701
Browse files Browse the repository at this point in the history
  • Loading branch information
mbecker-databay committed Jul 5, 2022
1 parent f1730ad commit 716f6bf
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion Modules/TestQuestionPool/classes/class.ilAssQuestionPageGUI.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<?php
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

require_once('./Services/COPage/classes/class.ilPageObjectGUI.php');
require_once('./Modules/TestQuestionPool/classes/class.ilAssQuestionPage.php');
Expand Down Expand Up @@ -69,6 +84,11 @@ public function showPage() : string
// fau.
return parent::showPage();
}

public function finishEditing() : void
{
$this->ctrl->redirectByClass('ilAssQuestionPreviewGUI', ilAssQuestionPreviewGUI::CMD_SHOW);
}

public function postOutputProcessing(string $a_output) : string
{
Expand Down

0 comments on commit 716f6bf

Please sign in to comment.