Commit b4f9a5db by Frédéric

Fix content type pre save

parent 9cf368cf
...@@ -32,7 +32,7 @@ class CustomQueriesExtension extends SimpleExtension ...@@ -32,7 +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){ if ($contentType && $contentType instanceof \Bolt\Storage\Mapping\ContentType){
$fields = $contentType->getFields(); $fields = $contentType->getFields();
$customQueryFields = []; $customQueryFields = [];
......
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