From fe0dedc1a5fa5d469b15098ffb1a4fa4f9839f4a Mon Sep 17 00:00:00 2001 From: srosse <stephane.rosse@frentix.com> Date: Tue, 16 Oct 2018 15:13:49 +0200 Subject: [PATCH] OO-3668: fix calendar course visitor always returning false --- src/main/java/org/olat/course/nodes/cal/CourseCalendars.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/olat/course/nodes/cal/CourseCalendars.java b/src/main/java/org/olat/course/nodes/cal/CourseCalendars.java index 0d04b7db645..a9eebdcab6c 100644 --- a/src/main/java/org/olat/course/nodes/cal/CourseCalendars.java +++ b/src/main/java/org/olat/course/nodes/cal/CourseCalendars.java @@ -206,7 +206,7 @@ public class CourseCalendars { CourseNode rootNode = course.getRunStructure().getRootNode(); CalCourseNodeVisitor v = new CalCourseNodeVisitor(); - new TreeVisitor(new CalCourseNodeVisitor(), rootNode, true).visitAll(); + new TreeVisitor(v, rootNode, true).visitAll(); return v.isFound(); } -- GitLab