We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a7842 commit 449f294Copy full SHA for 449f294
1 file changed
bundle/View/Builder/ContentViewBuilder.php
@@ -59,7 +59,7 @@ public function buildView(array $parameters): ContentView
59
}
60
61
if (isset($parameters['locationId'])) {
62
- $location = $this->loadLocation($parameters['locationId']);
+ $location = $this->loadLocation((int) $parameters['locationId']);
63
} elseif (isset($parameters['location'])) {
64
$location = $parameters['location'];
65
if ($location instanceof APILocation) {
@@ -76,7 +76,7 @@ public function buildView(array $parameters): ContentView
76
77
} else {
78
if (isset($parameters['contentId'])) {
79
- $contentId = $parameters['contentId'];
+ $contentId = (int) $parameters['contentId'];
80
} elseif (isset($location)) {
81
$contentId = $location->contentInfo->id;
82
0 commit comments