mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 20:05:53 +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)
|
1. [](#bugfix)
|
||||||
* Check if `$object->blueprints()` exists in `onAdminAfterSave`
|
* Check if `$object->blueprints()` exists in `onAdminAfterSave`
|
||||||
* Fix admin login redirects for multisite setups
|
* 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
|
# v1.8.1
|
||||||
## 05/15/2018
|
## 05/15/2018
|
||||||
|
|||||||
@@ -719,9 +719,9 @@ class AdminBaseController
|
|||||||
} else {
|
} else {
|
||||||
$new_data = $files;
|
$new_data = $files;
|
||||||
}
|
}
|
||||||
if (isset($data['header'][$init_key])) {
|
if ($obj->header()->{$init_key}) {
|
||||||
$obj->modifyHeader($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 {
|
} else {
|
||||||
$obj->modifyHeader($init_key, $new_data);
|
$obj->modifyHeader($init_key, $new_data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user