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
ff7581f7
Commit
ff7581f7
authored
11 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 8.4 to OpenOLAT default branch with 0850b25451c0fba42eaf6caf032dc462ef5b5dbc
parents
2b4eae2b
e5383c37
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/modules/co/ContactForm.java
+6
-6
6 additions, 6 deletions
src/main/java/org/olat/modules/co/ContactForm.java
with
6 additions
and
6 deletions
src/main/java/org/olat/modules/co/ContactForm.java
+
6
−
6
View file @
ff7581f7
...
@@ -162,7 +162,7 @@ public class ContactForm extends FormBasicController {
...
@@ -162,7 +162,7 @@ public class ContactForm extends FormBasicController {
//a new ContactList, put it into contactLists
//a new ContactList, put it into contactLists
contactLists
.
put
(
emailList
.
getName
(),
emailList
);
contactLists
.
put
(
emailList
.
getName
(),
emailList
);
//and add its name in the form
//and add its name in the form
addContactFormEmailTo
(
"
<
"
+
emailList
.
getName
()
+
"
>
"
);
addContactFormEmailTo
(
"
[
"
+
emailList
.
getName
()
+
"
]
"
);
}
}
}
}
...
@@ -250,12 +250,12 @@ public class ContactForm extends FormBasicController {
...
@@ -250,12 +250,12 @@ public class ContactForm extends FormBasicController {
String
sep
=
""
;
String
sep
=
""
;
int
i
=
0
;
int
i
=
0
;
int
j
=
-
1
;
int
j
=
-
1
;
i
=
value
.
indexOf
(
"
<
"
,
j
+
1
);
i
=
value
.
indexOf
(
"
[
"
,
j
+
1
);
j
=
value
.
indexOf
(
"
>
"
,
j
+
2
);
j
=
value
.
indexOf
(
"
]
"
,
j
+
2
);
while
(
i
>
-
1
&&
j
>
0
)
{
while
(
i
>
-
1
&&
j
>
0
)
{
String
contactListName
=
value
.
substring
(
i
+
1
,
j
);
String
contactListName
=
value
.
substring
(
i
+
1
,
j
);
i
=
value
.
indexOf
(
"
<
"
,
j
+
1
);
i
=
value
.
indexOf
(
"
[
"
,
j
+
1
);
j
=
value
.
indexOf
(
"
>
"
,
j
+
2
);
j
=
value
.
indexOf
(
"
]
"
,
j
+
2
);
if
(
contactLists
.
containsKey
(
contactListName
))
{
if
(
contactLists
.
containsKey
(
contactListName
))
{
ContactList
found
=
contactLists
.
get
(
contactListName
);
ContactList
found
=
contactLists
.
get
(
contactListName
);
retVal
+=
sep
+
found
.
toString
();
retVal
+=
sep
+
found
.
toString
();
...
@@ -373,7 +373,7 @@ public class ContactForm extends FormBasicController {
...
@@ -373,7 +373,7 @@ public class ContactForm extends FormBasicController {
setFormTitle
(
"header.newcntctmsg"
);
setFormTitle
(
"header.newcntctmsg"
);
String
fullName
=
userManager
.
getUserDisplayName
(
emailFrom
);
String
fullName
=
userManager
.
getUserDisplayName
(
emailFrom
);
if
(
StringHelper
.
containsNonWhitespace
(
fullName
))
{
if
(
StringHelper
.
containsNonWhitespace
(
fullName
))
{
fullName
=
"
<
"
+
fullName
+
"
>
"
;
fullName
=
"
[
"
+
fullName
+
"
]
"
;
}
}
tfrom
=
uifactory
.
addTextElement
(
"ttfrom"
,
NLS_CONTACT_FROM
,
255
,
fullName
,
formLayout
);
tfrom
=
uifactory
.
addTextElement
(
"ttfrom"
,
NLS_CONTACT_FROM
,
255
,
fullName
,
formLayout
);
tfrom
.
setEnabled
(
false
);
tfrom
.
setEnabled
(
false
);
...
...
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