user edit fix fullName
This commit is contained in:
parent
975d434add
commit
40d21cb0ae
@ -930,7 +930,7 @@ namespace Core\API\User {
|
|||||||
|
|
||||||
if ($fullNameChanged) {
|
if ($fullNameChanged) {
|
||||||
$user->fullName = $fullName;
|
$user->fullName = $fullName;
|
||||||
$columnsToUpdate[] = "full_name";
|
$columnsToUpdate[] = "fullName";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($emailChanged) {
|
if ($emailChanged) {
|
||||||
|
@ -123,7 +123,7 @@ export default function UserEditView(props) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
api.editUser(
|
api.editUser(
|
||||||
userId, user.name, user.email, user.password,
|
userId, user.name, user.fullName, user.email, user.password,
|
||||||
groupIds, user.confirmed, user.active
|
groupIds, user.confirmed, user.active
|
||||||
).then(res => {
|
).then(res => {
|
||||||
setSaving(false);
|
setSaving(false);
|
||||||
|
@ -127,9 +127,9 @@ export default class API {
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
async editUser(id, username, email, password, groups, confirmed, active) {
|
async editUser(id, username, fullName, email, password, groups, confirmed, active) {
|
||||||
return this.apiCall("user/edit", {
|
return this.apiCall("user/edit", {
|
||||||
id: id, username: username, email: email,
|
id: id, fullName: fullName, username: username, email: email,
|
||||||
password: password, groups: groups,
|
password: password, groups: groups,
|
||||||
confirmed: confirmed, active: active
|
confirmed: confirmed, active: active
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user