diff --git a/src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java b/src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java index 53aa29029e07c78e1524e27f8c5a313c132e0215..819722f497f092432ca16f6d3e6eee92c0c50341 100644 --- a/src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java +++ b/src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java @@ -89,6 +89,12 @@ public class StatisticCourseNodesController extends BasicController implements A layoutCtr = new LayoutMain3ColsController(ureq, wControl, courseTree, null, empty, null); listenTo(layoutCtr); putInitialPanel(layoutCtr.getInitialComponent()); + + // activate first child + TreeModel tree = courseTree.getTreeModel(); + if (tree != null && tree.getRootNode().getChildCount() > 0) { + doSelectNode(ureq, (TreeNode)tree.getRootNode().getChildAt(0)); + } } private TreeModel buildTreeModel(final UserRequest ureq, final UserCourseEnvironment userCourseEnv) { @@ -180,6 +186,9 @@ public class StatisticCourseNodesController extends BasicController implements A } else { layoutCtr.setCol3(new Panel("empty")); } + + // also select in GUI + courseTree.setSelectedNode(selectedNode); } private StatisticResourceNode getStatisticNodeInParentLine(TreeNode selectedNode) {