From 98c92c089bd49124eda981104edef352c2cc600a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Mon, 16 Mar 2020 15:30:33 +0100 Subject: [PATCH] EZP-31448: Added missing casting to int in ContentCreateViewFilter::handleContentCreateForm --- src/lib/Content/View/Filter/ContentCreateViewFilter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Content/View/Filter/ContentCreateViewFilter.php b/src/lib/Content/View/Filter/ContentCreateViewFilter.php index 86c72e0d..194dc4ca 100644 --- a/src/lib/Content/View/Filter/ContentCreateViewFilter.php +++ b/src/lib/Content/View/Filter/ContentCreateViewFilter.php @@ -79,7 +79,9 @@ public function handleContentCreateForm(FilterViewBuilderParametersEvent $event) $request->attributes->get('contentTypeIdentifier'), $this->languagePreferenceProvider->getPreferredLanguages() ); - $location = $this->locationService->loadLocation($request->attributes->get('parentLocationId')); + $location = $this->locationService->loadLocation( + $request->attributes->getInt('parentLocationId') + ); $contentCreateData = $this->resolveContentCreateData($contentType, $location, $languageCode); $form = $this->resolveContentCreateForm(