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
08d3be74
Commit
08d3be74
authored
10 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 9.3 to OpenOLAT default branch with 9395e31b5b685c8e95923a5cb9d3a6b0b454751c
parents
842f1f3b
c1c071e7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/admin/user/UserSearchFlexiController.java
+5
-2
5 additions, 2 deletions
...n/java/org/olat/admin/user/UserSearchFlexiController.java
src/main/java/org/olat/admin/user/imp/ImportStep00.java
+14
-3
14 additions, 3 deletions
src/main/java/org/olat/admin/user/imp/ImportStep00.java
with
19 additions
and
5 deletions
src/main/java/org/olat/admin/user/UserSearchFlexiController.java
+
5
−
2
View file @
08d3be74
...
@@ -235,9 +235,12 @@ public class UserSearchFlexiController extends FlexiAutoCompleterController {
...
@@ -235,9 +235,12 @@ public class UserSearchFlexiController extends FlexiAutoCompleterController {
}
}
}
}
@Override
protected
String
getSearchValue
(
UserRequest
ureq
)
{
protected
String
getSearchValue
(
UserRequest
ureq
)
{
String
searchValue
=
ureq
.
getParameter
(
autoCompleterContainer
.
getId
(
JSNAME_INPUTFIELD
));
if
(
autoCompleterContainer
!=
null
)
{
return
searchValue
;
return
ureq
.
getParameter
(
autoCompleterContainer
.
getId
(
JSNAME_INPUTFIELD
));
}
return
null
;
}
}
@Override
@Override
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/admin/user/imp/ImportStep00.java
+
14
−
3
View file @
08d3be74
...
@@ -305,15 +305,26 @@ class ImportStep00 extends BasicStep {
...
@@ -305,15 +305,26 @@ class ImportStep00 extends BasicStep {
}
}
boolean
isMandatoryField
=
um
.
isMandatoryUserProperty
(
usageIdentifyer
,
userPropertyHandler
);
boolean
isMandatoryField
=
um
.
isMandatoryUserProperty
(
usageIdentifyer
,
userPropertyHandler
);
if
(
isMandatoryField
&&
!
StringHelper
.
containsNonWhitespace
(
thisValue
))
{
if
(
isMandatoryField
&&
!
StringHelper
.
containsNonWhitespace
(
thisValue
))
{
textAreaElement
.
setErrorKey
(
"error.mandatory"
,
new
String
[]
{
String
.
valueOf
(
i
+
1
),
translate
(
userPropertyHandler
.
i18nFormElementLabelKey
())
});
String
label
=
""
;
if
(
userPropertyHandler
.
i18nFormElementLabelKey
()
!=
null
)
{
label
=
translate
(
userPropertyHandler
.
i18nFormElementLabelKey
());
}
textAreaElement
.
setErrorKey
(
"error.mandatory"
,
new
String
[]
{
String
.
valueOf
(
i
+
1
),
label
});
importDataError
=
true
;
importDataError
=
true
;
break
;
break
;
}
}
// used for call-back value depending on PropertyHandler
// used for call-back value depending on PropertyHandler
ValidationError
validationError
=
new
ValidationError
();
ValidationError
validationError
=
new
ValidationError
();
if
(!
userPropertyHandler
.
isValidValue
(
null
,
thisValue
,
validationError
,
getLocale
()))
{
if
(!
userPropertyHandler
.
isValidValue
(
null
,
thisValue
,
validationError
,
getLocale
()))
{
textAreaElement
.
setErrorKey
(
"error.lengthorformat"
,
new
String
[]
{
String
.
valueOf
(
i
+
1
),
translate
(
userPropertyHandler
.
i18nFormElementLabelKey
()),
String
error
=
"unkown"
;
translate
(
validationError
.
getErrorKey
(),
validationError
.
getArgs
())
});
String
label
=
""
;
if
(
userPropertyHandler
.
i18nFormElementLabelKey
()
!=
null
)
{
label
=
translate
(
userPropertyHandler
.
i18nFormElementLabelKey
());
}
if
(
validationError
.
getErrorKey
()
!=
null
)
{
error
=
translate
(
validationError
.
getErrorKey
(),
validationError
.
getArgs
());
}
textAreaElement
.
setErrorKey
(
"error.lengthorformat"
,
new
String
[]
{
String
.
valueOf
(
i
+
1
),
label
,
error
});
importDataError
=
true
;
importDataError
=
true
;
break
;
break
;
}
}
...
...
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