Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository 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
WCMS
uw_cfg_common
Commits
c6115d8a
Commit
c6115d8a
authored
2 years ago
by
Kevin Paxman
Browse files
Options
Downloads
Patches
Plain Diff
EXPHR: some changes suggested by Igor
parent
00790af8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!297
Feature/istwcms 5983 bulk account creation
,
!274
Draft: ISTWCMS-5551: fixing office hours display
,
!260
Feature/istwcms 5668 a5kulkar rename references to publications
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/UwAddUsersForm.php
+3
-2
3 additions, 2 deletions
src/Form/UwAddUsersForm.php
with
3 additions
and
2 deletions
src/Form/UwAddUsersForm.php
+
3
−
2
View file @
c6115d8a
...
...
@@ -111,11 +111,12 @@ class UwAddUsersForm extends FormBase {
continue
;
}
/** @var UserInterface $existing_user */
$existing_user
=
user_load_by_name
(
$user
);
if
(
$existing_user
)
{
$this
->
messenger
()
->
addError
(
$this
->
t
(
'The user ID <a href="@link"><em>@user</em></a> already exists and was skipped.'
,
[
'@link'
=>
$this
->
pathAliasManager
->
getAliasByPath
(
'/user/'
.
$existing_user
->
u
id
->
value
),
'@link'
=>
$this
->
pathAliasManager
->
getAliasByPath
(
'/user/'
.
$existing_user
->
id
),
'@user'
=>
$user
,
]
));
...
...
@@ -163,7 +164,7 @@ class UwAddUsersForm extends FormBase {
$this
->
messenger
()
->
addStatus
(
$this
->
t
(
'Created a new user with the user ID <a href="@link"><em>@user</em></a>.'
,
[
'@link'
=>
$this
->
pathAliasManager
->
getAliasByPath
(
'/user/'
.
$new_user
->
u
id
->
value
),
'@link'
=>
$this
->
pathAliasManager
->
getAliasByPath
(
'/user/'
.
$new_user
->
id
()
),
'@user'
=>
$user
,
]
));
...
...
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