From 38a9727e3a726cbdb8dbc91e9235904182b02055 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 1 Dec 2023 15:31:50 +0100 Subject: [PATCH] Workaround for duplicates in `wcf1_message_embedded_object` see https://github.com/WoltLab/WCF/issues/5719 --- .../files/lib/data/attachment/GroupedAttachmentList.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php index faf134a9496..8b2fc73acf1 100644 --- a/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php +++ b/wcfsetup/install/files/lib/data/attachment/GroupedAttachmentList.class.php @@ -53,7 +53,7 @@ public function __construct($objectType) $this->getConditionBuilder()->add( '( - SELECT embeddedObjectID + SELECT DISTINCT embeddedObjectID FROM wcf' . WCF_N . '_message_embedded_object WHERE messageObjectTypeID = ? AND messageID = attachment.objectID