user edit fix fullName

This commit is contained in:
Roman 2024-05-06 15:39:25 +02:00
parent 975d434add
commit 40d21cb0ae
3 changed files with 4 additions and 4 deletions

@ -930,7 +930,7 @@ namespace Core\API\User {
if ($fullNameChanged) {
$user->fullName = $fullName;
$columnsToUpdate[] = "full_name";
$columnsToUpdate[] = "fullName";
}
if ($emailChanged) {

@ -123,7 +123,7 @@ export default function UserEditView(props) {
}
} else {
api.editUser(
userId, user.name, user.email, user.password,
userId, user.name, user.fullName, user.email, user.password,
groupIds, user.confirmed, user.active
).then(res => {
setSaving(false);

@ -127,9 +127,9 @@ export default class API {
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", {
id: id, username: username, email: email,
id: id, fullName: fullName, username: username, email: email,
password: password, groups: groups,
confirmed: confirmed, active: active
});