From 83560aba9c71f7209f7a84527317af2686366f79 Mon Sep 17 00:00:00 2001
From: srosse <stephane.rosse@frentix.com>
Date: Mon, 25 Mar 2019 08:24:42 +0100
Subject: [PATCH] OO-3992: put, not set, the initial panel for errors

---
 .../org/olat/course/nodes/bc/BCCourseNodeRunController.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/olat/course/nodes/bc/BCCourseNodeRunController.java b/src/main/java/org/olat/course/nodes/bc/BCCourseNodeRunController.java
index f75037281bc..862e1f0a719 100644
--- a/src/main/java/org/olat/course/nodes/bc/BCCourseNodeRunController.java
+++ b/src/main/java/org/olat/course/nodes/bc/BCCourseNodeRunController.java
@@ -113,7 +113,7 @@ public class BCCourseNodeRunController extends BasicController implements Activa
 			if(item == null){
 				noFolder = true;
 				BCCourseNodeNoFolderForm noFolderForm = new BCCourseNodeNoFolderForm(ureq, getWindowControl());
-				setInitialComponent(noFolderForm.getInitialComponent());
+				putInitialPanel(noFolderForm.getInitialComponent());
 			} else if(item instanceof VFSContainer){
 				target = new NamedContainerImpl(courseNode.getShortTitle(), (VFSContainer) item);
 			}
@@ -138,7 +138,7 @@ public class BCCourseNodeRunController extends BasicController implements Activa
 			if(item == null) {
 				noFolder = true;
 				BCCourseNodeNoFolderForm noFolderForm = new BCCourseNodeNoFolderForm(ureq, getWindowControl());
-				setInitialComponent(noFolderForm.getInitialComponent());
+				putInitialPanel(noFolderForm.getInitialComponent());
 				scallback = new ReadOnlyCallback();
 			} else {
 				target = new NamedContainerImpl(courseNode.getShortTitle(), item);
-- 
GitLab