mirror of
https://github.com/flextype/flextype.git
synced 2025-08-23 05:16:03 +02:00
feat(core): update Entries method #186
This commit is contained in:
@@ -372,7 +372,7 @@ class Entries
|
||||
public function update(string $id, array $data) : bool
|
||||
{
|
||||
if ($_entry = $this->read($id)) {
|
||||
return Filesystem::write($_entry['file_path'], Parser::encode($data, $_entry['file_parser']));
|
||||
return Filesystem::write($_entry['file_path'], Parser::encode(array_replace_recursive($_entry['file_data'], $data), $_entry['file_parser']));
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user