From a5ea66bca14dd260f307ed5527b84b67323780ca Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 15 Aug 2024 13:25:09 +0200 Subject: [PATCH] Fix the tracking of attachment downloads --- .../lib/system/file/processor/AttachmentFileProcessor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/file/processor/AttachmentFileProcessor.class.php b/wcfsetup/install/files/lib/system/file/processor/AttachmentFileProcessor.class.php index 6de38a51ae..bfc054b3dc 100644 --- a/wcfsetup/install/files/lib/system/file/processor/AttachmentFileProcessor.class.php +++ b/wcfsetup/install/files/lib/system/file/processor/AttachmentFileProcessor.class.php @@ -241,7 +241,7 @@ final class AttachmentFileProcessor extends AbstractFileProcessor } (new AttachmentEditor($attachment))->update([ - 'downloads' => $attachment->downloads, + 'downloads' => $attachment->downloads + 1, 'lastDownloadTime' => \TIME_NOW, ]); } -- 2.20.1