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
aa294d09
Commit
aa294d09
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-4593: only save the number of user in high score if option selected
parent
e8bcdaec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/highscore/ui/HighScoreEditController.java
+7
-2
7 additions, 2 deletions
...org/olat/course/highscore/ui/HighScoreEditController.java
with
7 additions
and
2 deletions
src/main/java/org/olat/course/highscore/ui/HighScoreEditController.java
+
7
−
2
View file @
aa294d09
...
...
@@ -267,8 +267,13 @@ public class HighScoreEditController extends FormBasicController {
config
.
set
(
CONFIG_KEY_DATESTART
,
dateStart
.
getDate
());
config
.
set
(
CONFIG_KEY_ANONYMIZE
,
displayAnonymous
.
isSelected
(
0
));
if
(
showListing
.
isSelected
(
0
))
{
config
.
set
(
CONFIG_KEY_BESTONLY
,
bestOnlyEl
.
getSelected
());
config
.
set
(
CONFIG_KEY_NUMUSER
,
numTableRows
.
getIntValue
());
int
bestOnly
=
bestOnlyEl
.
getSelected
();
config
.
set
(
CONFIG_KEY_BESTONLY
,
bestOnly
);
if
(
bestOnly
==
1
)
{
config
.
set
(
CONFIG_KEY_NUMUSER
,
numTableRows
.
getIntValue
());
}
else
{
config
.
remove
(
CONFIG_KEY_NUMUSER
);
}
}
fireEvent
(
ureq
,
Event
.
DONE_EVENT
);
}
...
...
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