Skip to content

Commit 98270ea

Browse files
committed
add ctype to attachment package property query
1 parent 4e19ee5 commit 98270ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormBuilderBundle/Stream/AttachmentStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ protected function findExistingAssetPackage(string $packageIdentifier, string $f
211211
'assets',
212212
'properties',
213213
'properties',
214-
sprintf('properties.`cid` = assets.`id` AND properties.`name` = "%s"', self::PACKAGE_IDENTIFIER)
214+
sprintf('properties.`cid` = assets.`id` AND properties.`ctype` = "asset" AND properties.`name` = "%s"', self::PACKAGE_IDENTIFIER)
215215
);
216216
});
217217

0 commit comments

Comments
 (0)