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(