mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 20:47:04 +02:00
Fixed issue with file field in collections that caused unexpected duplication of items (fixes #775)
This commit is contained in:
@@ -1937,7 +1937,7 @@ class AdminController
|
||||
$new_data = $files;
|
||||
}
|
||||
if (isset($data['header'][$init_key])) {
|
||||
$obj->modifyHeader($init_key, array_merge([], $data['header'][$init_key], $new_data));
|
||||
$obj->modifyHeader($init_key, array_replace_recursive([], $data['header'][$init_key], $new_data));
|
||||
} else {
|
||||
$obj->modifyHeader($init_key, $new_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user