Skip to content

Commit

Permalink
EZP-31448: Added missing casting to int in ContentCreateViewFilter::h…
Browse files Browse the repository at this point in the history
…andleContentCreateForm
  • Loading branch information
adamwojs committed Mar 18, 2020
1 parent 27ec3ef commit 98c92c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Content/View/Filter/ContentCreateViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 98c92c0

Please # to comment.