mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 03:46:30 +01:00
Fixed issue with filepicker field where images wouldn't properly merge with the current value if in a page header
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
1. [](#bugfix)
|
||||
* Check if `$object->blueprints()` exists in `onAdminAfterSave`
|
||||
* Fix admin login redirects for multisite setups
|
||||
* Fixed issue with filepicker field where images wouldn't properly merge with the current value if in a page header
|
||||
|
||||
# v1.8.1
|
||||
## 05/15/2018
|
||||
|
||||
@@ -719,9 +719,9 @@ class AdminBaseController
|
||||
} else {
|
||||
$new_data = $files;
|
||||
}
|
||||
if (isset($data['header'][$init_key])) {
|
||||
if ($obj->header()->{$init_key}) {
|
||||
$obj->modifyHeader($init_key,
|
||||
array_replace_recursive([], $data['header'][$init_key], $new_data));
|
||||
array_replace_recursive([], $obj->header()->{$init_key}, $new_data));
|
||||
} else {
|
||||
$obj->modifyHeader($init_key, $new_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user