From d678ca1c485bc29f41958219c4c38e38df9e21ae Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 4 Nov 2015 11:23:51 +0100 Subject: [PATCH] OO-1762: make sure the full page is desactivated after an test made in assessment mode --- .../course/assessment/ui/AssessmentModeGuardController.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/olat/course/assessment/ui/AssessmentModeGuardController.java b/src/main/java/org/olat/course/assessment/ui/AssessmentModeGuardController.java index 992f391b5f3..226f4692364 100644 --- a/src/main/java/org/olat/course/assessment/ui/AssessmentModeGuardController.java +++ b/src/main/java/org/olat/course/assessment/ui/AssessmentModeGuardController.java @@ -33,7 +33,9 @@ import org.olat.core.gui.components.link.Link; import org.olat.core.gui.components.link.LinkFactory; import org.olat.core.gui.components.panel.Panel; import org.olat.core.gui.components.velocity.VelocityContainer; +import org.olat.core.gui.control.ChiefController; import org.olat.core.gui.control.Event; +import org.olat.core.gui.control.ScreenMode.Mode; import org.olat.core.gui.control.WindowControl; import org.olat.core.gui.control.controller.BasicController; import org.olat.core.gui.control.generic.closablewrapper.CloseableModalController; @@ -361,6 +363,10 @@ public class AssessmentModeGuardController extends BasicController implements Ge if(canContinue) { cmc.deactivate(); + //make sure to see the navigation bar + ChiefController cc = Windows.getWindows(ureq).getChiefController(); + cc.getScreenMode().setMode(Mode.standard); + fireEvent(ureq, new Event("continue")); String businessPath = "[MyCoursesSite:0]"; NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl()); -- GitLab