Skip to content

Commit

Permalink
add ctype to attachment package property query
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Mar 4, 2022
1 parent 4e19ee5 commit 98270ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormBuilderBundle/Stream/AttachmentStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
});

Expand Down

0 comments on commit 98270ea

Please sign in to comment.