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
c1562040
Commit
c1562040
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-4219: more escaping in check list
parent
a3a91719
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/nodes/cl/ui/AssessedIdentityCheckListController.java
+6
-7
6 additions, 7 deletions
...urse/nodes/cl/ui/AssessedIdentityCheckListController.java
with
6 additions
and
7 deletions
src/main/java/org/olat/course/nodes/cl/ui/AssessedIdentityCheckListController.java
+
6
−
7
View file @
c1562040
...
...
@@ -151,7 +151,7 @@ public class AssessedIdentityCheckListController extends FormBasicController {
MultipleSelectionElement
boxEl
=
uifactory
.
addCheckboxesHorizontal
(
boxId
,
null
,
formLayout
,
onKeys
,
values
);
boxEl
.
setEnabled
(!
readOnly
&&
!
coachCourseEnv
.
isCourseReadOnly
());
boxEl
.
setLabel
(
checkbox
.
getTitle
(),
null
,
false
);
boxEl
.
setLabel
(
StringHelper
.
escapeHtml
(
checkbox
.
getTitle
()
)
,
null
,
false
);
boxEl
.
showLabel
(
true
);
boxEl
.
addActionListener
(
FormEvent
.
ONCHANGE
);
...
...
@@ -219,10 +219,9 @@ public class AssessedIdentityCheckListController extends FormBasicController {
@Override
protected
boolean
validateFormLogic
(
UserRequest
ureq
)
{
boolean
allOk
=
super
.
validateFormLogic
(
ureq
);
boolean
allOk
=
true
;
for
(
CheckboxWrapper
wrapper:
wrappers
)
{
TextElement
pointEl
=
wrapper
.
getPointEl
();
if
(
pointEl
!=
null
)
{
pointEl
.
clearError
();
...
...
@@ -244,7 +243,7 @@ public class AssessedIdentityCheckListController extends FormBasicController {
}
}
}
return
allOk
&
super
.
validateFormLogic
(
ureq
)
;
return
allOk
;
}
private
void
doSave
()
{
...
...
@@ -255,7 +254,7 @@ public class AssessedIdentityCheckListController extends FormBasicController {
String
val
=
wrapper
.
getPointEl
().
getValue
();
if
(
StringHelper
.
containsNonWhitespace
(
val
))
{
try
{
editedPoint
=
new
Float
(
val
);
editedPoint
=
Float
.
valueOf
(
val
);
}
catch
(
NumberFormatException
e
)
{
editedPoint
=
null
;
}
...
...
@@ -351,7 +350,7 @@ public class AssessedIdentityCheckListController extends FormBasicController {
this
.
dbCheckbox
=
dbCheckbox
;
}
public
String
getTitle
()
{
public
String
getTitle
2
()
{
return
checkbox
.
getTitle
();
}
...
...
@@ -368,7 +367,7 @@ public class AssessedIdentityCheckListController extends FormBasicController {
}
public
String
getCheckboxElName
()
{
return
checkboxEl
.
getName
();
//getComponent().getComponentName();
return
checkboxEl
.
getName
();
}
}
}
\ No newline at end of file
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