Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
19e1e81b
Commit
19e1e81b
authored
10 years ago
by
gnaegi
Browse files
Options
Downloads
Patches
Plain Diff
OO-716 select first test to not show empty page, activate item in UI when choosing section in menu
parent
597ef5ba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java
+9
-0
9 additions, 0 deletions
...olat/course/statistic/StatisticCourseNodesController.java
with
9 additions
and
0 deletions
src/main/java/org/olat/course/statistic/StatisticCourseNodesController.java
+
9
−
0
View file @
19e1e81b
...
@@ -89,6 +89,12 @@ public class StatisticCourseNodesController extends BasicController implements A
...
@@ -89,6 +89,12 @@ public class StatisticCourseNodesController extends BasicController implements A
layoutCtr
=
new
LayoutMain3ColsController
(
ureq
,
wControl
,
courseTree
,
null
,
empty
,
null
);
layoutCtr
=
new
LayoutMain3ColsController
(
ureq
,
wControl
,
courseTree
,
null
,
empty
,
null
);
listenTo
(
layoutCtr
);
listenTo
(
layoutCtr
);
putInitialPanel
(
layoutCtr
.
getInitialComponent
());
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
)
{
private
TreeModel
buildTreeModel
(
final
UserRequest
ureq
,
final
UserCourseEnvironment
userCourseEnv
)
{
...
@@ -180,6 +186,9 @@ public class StatisticCourseNodesController extends BasicController implements A
...
@@ -180,6 +186,9 @@ public class StatisticCourseNodesController extends BasicController implements A
}
else
{
}
else
{
layoutCtr
.
setCol3
(
new
Panel
(
"empty"
));
layoutCtr
.
setCol3
(
new
Panel
(
"empty"
));
}
}
// also select in GUI
courseTree
.
setSelectedNode
(
selectedNode
);
}
}
private
StatisticResourceNode
getStatisticNodeInParentLine
(
TreeNode
selectedNode
)
{
private
StatisticResourceNode
getStatisticNodeInParentLine
(
TreeNode
selectedNode
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment