Skip to content

Commit

Permalink
Fixed #15718
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 27, 2024
1 parent 1b67dad commit 064dfd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Fixed a bug where element index View menus could include a “Use defaults” button when no view customizations had been made.
- Fixed a bug where new entries’ slugs weren’t getting propagated to other sites, if their entry type had a dynamic title format. ([#16347](https://github.com/craftcms/cms/issues/16347))
- Fixed a bug where address cards were only showing the first two lines of the address. ([#16353](https://github.com/craftcms/cms/issues/16353))
- Fixed a bug where `@transform` GraphQL directives weren’t always working on Assets fields with overridden handles. ([#15718](https://github.com/craftcms/cms/issues/15718))
- Fixed an RCE vulnerability.

## 5.5.7 - 2024-12-17
Expand Down
2 changes: 1 addition & 1 deletion src/gql/directives/Transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function apply(mixed $source, mixed $value, array $arguments, Reso

if ($value instanceof Asset) {
$value->setTransform($transform);
} elseif ($value instanceof Collection) {
} elseif ($value instanceof Collection || is_array($value)) {
foreach ($value as $asset) {
// If this somehow ended up being a mix of elements, don't explicitly fail, just set the transform on the asset elements
if ($asset instanceof Asset) {
Expand Down

0 comments on commit 064dfd3

Please sign in to comment.