Skip to content

Commit b9d8ec5

Browse files
committed
Fixed #13622
1 parent ffe28b6 commit b9d8ec5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Fixed a bug where changed fields weren’t being tracked properly when applying a draft for a multi-site entry.
66
- `craft\services\Elements::duplicateElement()` now supports passing a `siteAttributes` array to the `$attributes` argument, for setting site-specific attributes.
7+
- Fixed an error that could occur when executing a GraphQL query with fragments. ([#13622](https://github.com/craftcms/cms/issues/13622))
78

89
## 4.5.3 - 2023-08-29
910

src/services/Gql.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public function executeQuery(
497497
$event->result = $cachedResult;
498498
} else {
499499
$isIntrospectionQuery = StringHelper::containsAny($event->query, ['__schema', '__type']);
500-
$schemaDef = $this->getSchemaDef($schema, $debugMode || $isIntrospectionQuery);
500+
$schemaDef = $this->getSchemaDef($schema, true);
501501
$elementsService = Craft::$app->getElements();
502502
$elementsService->startCollectingCacheInfo();
503503

0 commit comments

Comments
 (0)