Skip to content

Commit

Permalink
Fix SingleCategory resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Nov 18, 2024
1 parent e1c5cfd commit 0b8270e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SingleCategorySelectionPropertyResolver implements PropertyResolverInterfa
{
public function resolve(mixed $data, string $locale, array $params = []): ContentView
{
if (!\is_string($data) || '' === $data) {
if (!\is_int($data)) {
return ContentView::create([], $params);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</service>

<service id="sulu_category.single_category_selection_property_resolver"
class="Sulu\Bundle\CategoryBundle\Infrastructure\Sulu\Content\PropertyResolver\CategorySelectionPropertyResolver">
class="Sulu\Bundle\CategoryBundle\Infrastructure\Sulu\Content\PropertyResolver\SingleCategorySelectionPropertyResolver">

<tag name="sulu_content.property_resolver"/>
</service>
Expand Down

0 comments on commit 0b8270e

Please sign in to comment.