From 70424271108289e3ade0c4bc504dc1f6cf58c954 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 11 Oct 2023 16:11:19 +0200 Subject: [PATCH] fix sql _mitarbeiter_ohne_zuordnung --- application/libraries/SearchBarLib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/libraries/SearchBarLib.php b/application/libraries/SearchBarLib.php index ed4a66ffb..54fb73698 100644 --- a/application/libraries/SearchBarLib.php +++ b/application/libraries/SearchBarLib.php @@ -150,8 +150,8 @@ class SearchBarLib WHERE kontakttyp = \'telefon\' ) k ON(k.standort_id = m.standort_id) WHERE - stdkst.bezeichnung IS NULL - AND org.bezeichnung IS NULL + (stdkst.bezeichnung IS NULL + OR org.bezeichnung IS NULL) AND ( b.uid ILIKE \'%'.$dbModel->escapeLike($searchstr).'%\' OR p.vorname ILIKE \'%'.$dbModel->escapeLike($searchstr).'%\' @@ -159,7 +159,7 @@ class SearchBarLib ) GROUP BY type, b.uid, p.person_id, name, email, m.telefonklappe, phone '; - + $employees = $dbModel->execReadOnlyQuery($sql); // If something has been found then return it