From ac58205becf1912ff09cbb74955b5ff8df8fe641 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 31 Aug 2019 00:21:06 +0300 Subject: [PATCH] feat(core): update Entries method #186 --- flextype/core/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index 6b13be96..f521d7a9 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -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;