Commit 9cf368cf by Van

add conditions back

parent 1173d518
...@@ -32,6 +32,7 @@ class CustomQueriesExtension extends SimpleExtension ...@@ -32,6 +32,7 @@ class CustomQueriesExtension extends SimpleExtension
$subject = $event->getSubject(); $subject = $event->getSubject();
/** @var \Bolt\Storage\Mapping\ContentType $contentType */ /** @var \Bolt\Storage\Mapping\ContentType $contentType */
$contentType = $subject->getContentType(); $contentType = $subject->getContentType();
if ($contentType){
$fields = $contentType->getFields(); $fields = $contentType->getFields();
$customQueryFields = []; $customQueryFields = [];
...@@ -55,6 +56,7 @@ class CustomQueriesExtension extends SimpleExtension ...@@ -55,6 +56,7 @@ class CustomQueriesExtension extends SimpleExtension
} }
} }
} }
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment