really do not show thirdparty which are not active

This commit is contained in:
2022-03-30 15:26:45 +02:00
parent 9812710cd0
commit dae9d48574
2 changed files with 8 additions and 1 deletions

View File

@@ -113,7 +113,8 @@ class ThirdPartyApiSearch implements SearchApiInterface
[],
...$pertinenceArgs
))
->andWhereClause(implode(' AND ', $wheres), array_merge(
->andWhereClause(implode(' AND ', $wheres)
.' AND tparty.active IS TRUE and (parent.active IS TRUE OR parent IS NULL)', array_merge(
[],
...$whereArgs
));