Skip to content

Commit b9fda9e

Browse files
author
Alexis Lefebvre
committed
Fix issue with widget without widget_map
Backport of #19
1 parent 4f5a53c commit b9fda9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Resolver/WidgetSearchContentResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getWidgetStaticContent(Widget $widget)
112112
$_result = $_result->getResult();
113113

114114
if ($_result->getScore() > 0.4) {
115-
if ($_entity instanceof Widget) {
115+
if ($_entity instanceof Widget && null !== $_entity->getWidgetMap()) {
116116
$view = $_entity->getWidgetMap()->getView();
117117
if ($this->isPageAccessible($view)) {
118118
if (!in_array($view->getId(), $alreadyAdded) && !$view instanceof Template) {

0 commit comments

Comments
 (0)