mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-29 17:26:40 +01:00
Uploaded Avatar removed from user's yaml when editing the user [#1647]
This commit is contained in:
@@ -764,6 +764,8 @@ class AdminBaseController
|
||||
} else {
|
||||
$obj->modifyHeader($init_key, $new_data);
|
||||
}
|
||||
} elseif ($obj instanceof UserInterface and $key === 'avatar') {
|
||||
$obj->set($key, $files);
|
||||
} else {
|
||||
// TODO: [this is JS handled] if it's single file, remove existing and use set, if it's multiple, use join
|
||||
$obj->join($key, $files); // stores
|
||||
|
||||
Reference in New Issue
Block a user