mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-21 22:16:11 +01:00
Fix broken demand support for categories
This was broken since changes during update.
This commit is contained in:
parent
cbd59a366d
commit
4e2f191030
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ class EventRepository extends Repository
|
|||
|
||||
$allCategories = GeneralUtility::intExplode(',', $demand->getCategories(), true);
|
||||
|
||||
if ($demand->includeSubCategories()) {
|
||||
if ($demand->getIncludeSubCategories()) {
|
||||
$categoryService = GeneralUtility::makeInstance(CategoryService::class);
|
||||
$allCategories = $categoryService->getChildrenCategories($demand->getCategories());
|
||||
if (!\is_array($allCategories)) {
|
||||
|
@ -144,7 +144,7 @@ class EventRepository extends Repository
|
|||
}
|
||||
|
||||
foreach ($allCategories as $category) {
|
||||
$constraints[] = $query->contains('demand->getCategories()', $category);
|
||||
$constraints[] = $query->contains('categories', $category);
|
||||
}
|
||||
|
||||
if ($demand->getCategoryCombination() === 'or') {
|
||||
|
|
Loading…
Reference in a new issue