user edit fix fullName
This commit is contained in:
parent
975d434add
commit
40d21cb0ae
@ -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
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user