We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95deb76 commit cd5942fCopy full SHA for cd5942f
src/Type/Object/TemplatedPageType.php
@@ -4,6 +4,7 @@
4
5
use Youshido\GraphQL\Type\Object\AbstractObjectType;
6
use ProcessWire\Template;
7
+use ProcessWire\Field;
8
use ProcessWire\GraphQL\Type\InterfaceType\PageInterfaceType;
9
use ProcessWire\GraphQL\Settings;
10
@@ -40,6 +41,7 @@ public function build($config)
40
41
$config->applyInterface(new PageInterfaceType());
42
foreach ($this->template->fields as $field) {
43
if (!$legalFields->has($field)) continue;
44
+ if ($field->flags & Field::flagGlobal) continue; // global fields are already added via PageTypeInterface
45
$className = "\\ProcessWire\\GraphQL\\Field\\Page\\Fieldtype\\" . $field->type->className();
46
if (!class_exists($className)) continue;
47
$config->addField(new $className($field));
0 commit comments