From 98270eaf69e00116bfce9fbdacb89a20bc40c3a3 Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Fri, 4 Mar 2022 18:12:59 +0100 Subject: [PATCH] add ctype to attachment package property query --- src/FormBuilderBundle/Stream/AttachmentStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FormBuilderBundle/Stream/AttachmentStream.php b/src/FormBuilderBundle/Stream/AttachmentStream.php index 63d69df8..797d85a6 100644 --- a/src/FormBuilderBundle/Stream/AttachmentStream.php +++ b/src/FormBuilderBundle/Stream/AttachmentStream.php @@ -211,7 +211,7 @@ protected function findExistingAssetPackage(string $packageIdentifier, string $f 'assets', 'properties', 'properties', - sprintf('properties.`cid` = assets.`id` AND properties.`name` = "%s"', self::PACKAGE_IDENTIFIER) + sprintf('properties.`cid` = assets.`id` AND properties.`ctype` = "asset" AND properties.`name` = "%s"', self::PACKAGE_IDENTIFIER) ); });