From a1c4aa8748a4b982ecef428947b14d850c0ad72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Mon, 9 Nov 2020 12:31:51 +0100 Subject: [PATCH 1/3] Make sure siteaccess exists in request before using it in SetPageLayoutListener --- .../EventListener/SetPageLayoutListener.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bundle/PlatformAdminUI/EventListener/SetPageLayoutListener.php b/bundle/PlatformAdminUI/EventListener/SetPageLayoutListener.php index b5ec051c..ff76a515 100644 --- a/bundle/PlatformAdminUI/EventListener/SetPageLayoutListener.php +++ b/bundle/PlatformAdminUI/EventListener/SetPageLayoutListener.php @@ -56,7 +56,12 @@ public function onKernelRequest(GetResponseEvent $event) return; } - $siteAccess = $event->getRequest()->attributes->get('siteaccess')->name; + $request = $event->getRequest(); + if (!$request->attributes->has('siteaccess')) { + return; + } + + $siteAccess = $request->attributes->get('siteaccess')->name; if (!isset($this->groupsBySiteAccess[$siteAccess])) { return; } From 0602d614fa2b18d229f708f284d6736291fa994f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Mon, 9 Nov 2020 12:33:44 +0100 Subject: [PATCH 2/3] Update changelog --- doc/changelogs/CHANGELOG-3.x.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/changelogs/CHANGELOG-3.x.md b/doc/changelogs/CHANGELOG-3.x.md index f60101f6..e82d416e 100644 --- a/doc/changelogs/CHANGELOG-3.x.md +++ b/doc/changelogs/CHANGELOG-3.x.md @@ -1,6 +1,11 @@ Netgen Tags Bundle 3.x changelog ================================ +3.4.8 (09.11.2020) +------------------ + +* Make sure siteaccess exists in request before using it in `SetPageLayoutListener` + 3.4.7 (06.11.2020) ------------------ From a3960ede9cf684d2b8ed84217d052e57bbb77371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Mon, 9 Nov 2020 12:34:01 +0100 Subject: [PATCH 3/3] Bump version to 3.4.9 --- bundle/Version.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/Version.php b/bundle/Version.php index b00937ad..e4d6b7e0 100644 --- a/bundle/Version.php +++ b/bundle/Version.php @@ -4,10 +4,10 @@ abstract class Version { - const VERSION = '3.4.8'; - const VERSION_ID = 30408; + const VERSION = '3.4.9'; + const VERSION_ID = 30409; const MAJOR_VERSION = 3; const MINOR_VERSION = 4; - const RELEASE_VERSION = 8; + const RELEASE_VERSION = 9; const EXTRA_VERSION = ''; }