Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
a0e88924
Commit
a0e88924
authored
Jun 18, 2021
by
Piotr Gawron
Browse files
if save fails clear login
parent
0df2311b
Pipeline
#43264
passed with stage
in 28 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
a0e88924
...
...
@@ -17,6 +17,8 @@ minerva (16.0.0~beta.1) stable; urgency=medium
create
/
update
/
delete
(#
1509
)
*
Bug
fix
:
exporting
part
of
map
as
image
caused
removing
not
drawn
species
from
the
database
(#
1508
)
*
Bug
fix
:
adding
user
with
already
existing
login
and
changing
his
privileges
occured
with
error
(#
1507
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Wed
,
9
Jun
2021
15
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/gui/admin/EditUserDialog.js
View file @
a0e88924
...
...
@@ -598,6 +598,7 @@ EditUserDialog.prototype.onSaveClicked = function () {
user
.
setName
(
self
.
getName
());
user
.
setSurname
(
self
.
getSurname
());
return
self
.
getServerConnector
().
addUser
(
user
).
catch
(
function
(
error
)
{
user
.
setLogin
(
undefined
);
if
(
error
instanceof
ObjectExistsError
)
{
return
Promise
.
reject
(
new
ValidationError
(
"
User with given login already exists
"
));
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment