diff --git a/CHANGELOG.md b/CHANGELOG.md index b996d33dec..527af960b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ HumHub Changelog ================ +1.14.4 (Unreleased) +---------------------- +- Fix #6489: Never delete original file on store new version + 1.14.3 (July 27, 2023) ---------------------- - Fix #6345: Fix updating of post on wall stream diff --git a/protected/humhub/modules/file/models/File.php b/protected/humhub/modules/file/models/File.php index 733821b4c8..6719850c29 100644 --- a/protected/humhub/modules/file/models/File.php +++ b/protected/humhub/modules/file/models/File.php @@ -350,7 +350,7 @@ class File extends FileCompat FileHistory::createEntryForFile($this); } - $this->store->delete(null, [FileHistory::VARIANT_PREFIX . '*']); + $this->store->delete(null, ['file', FileHistory::VARIANT_PREFIX . '*']); } /**