From 04db4e9dc5288d5af81179e8b96e332a0e9935e4 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 10 Sep 2018 00:00:00 +0200 Subject: [PATCH] Fixed site attachments in browse preview block. --- application/src/Site/BlockLayout/BrowsePreview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/Site/BlockLayout/BrowsePreview.php b/application/src/Site/BlockLayout/BrowsePreview.php index bcc45a607..3808ed6ae 100644 --- a/application/src/Site/BlockLayout/BrowsePreview.php +++ b/application/src/Site/BlockLayout/BrowsePreview.php @@ -95,7 +95,7 @@ public function render(PhpRenderer $view, SitePageBlockRepresentation $block) $site = $block->page()->site(); if ($view->siteSetting('browse_attached_items', false)) { - $itemPool['site_attachments_only'] = true; + $query['site_attachments_only'] = true; } $query['site_id'] = $site->id();