You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are unable to apply image transforms on a field with similar names to the other GraphQL types/interfaces. The asset field used is actually exactly the same one on all of the article_...._Entry types.
I'm not sure _exactly_ why the `$value` here is sometimes an array, but my best guess is that when a relation field is used twice, the second time it comes through as an array instead of a collection.
Fixes#11982
Thanks for reporting! I was able to track this down to these lines which create an array with aliases as the key. Since your use case uses the same aliases for different assets, we lose track of half of the transforms when looping through.
I'm working on a real fix, but if you need to work around it in the mean time, using different aliases for each entry type should let you get back proper transforms.
What happened?
Description
We are unable to apply image transforms on a field with similar names to the other GraphQL types/interfaces. The asset field used is actually exactly the same one on all of the
article_...._Entry
types.Steps to reproduce
Source image is a JPG.
Sample image transform:
GraphQL query:
Expected behavior
Actual behavior
Craft CMS version
4.2.4
PHP version
8.1.7
Operating system and version
Docker php alpine 8.1
Database type and version
MySQL 8.0.28
Image driver and version
Imagick 3.7.0 (ImageMagick 7.1.0-16)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: