Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
418f1346
Verified
Commit
418f1346
authored
May 19, 2021
by
Florian Azizian
Browse files
FIX #17113 TIME 0:10 Improve control in user redirection
parent
b8b1337d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/entity/controllers/ListInstanceController.php
View file @
418f1346
...
...
@@ -500,7 +500,7 @@ class ListInstanceController
if
(
$listInstance
[
'item_type'
]
==
'user_id'
)
{
$user
=
UserModel
::
getByLogin
([
'login'
=>
$listInstance
[
'item_id'
],
'select'
=>
[
'id'
],
'noDeleted'
=>
true
]);
$listInstance
[
'item_id'
]
=
$user
[
'id'
]
??
null
;
}
else
{
}
else
if
(
$listInstance
[
'item_type'
]
==
'user'
)
{
$user
=
UserModel
::
getById
([
'id'
=>
$listInstance
[
'item_id'
],
'select'
=>
[
'id'
],
'noDeleted'
=>
true
]);
}
$listInstance
[
'item_type'
]
=
'user_id'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment