Skip to content

Commit 0e23dc9

Browse files
Alexis Lefebvrelenybernard
authored andcommitted
Fix issue with widget without widget_map
1 parent 43504e9 commit 0e23dc9

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)