From ba4bd99ddae0d2b1ebd534e6e3ee2cd8b26d74b0 Mon Sep 17 00:00:00 2001 From: kindlm Date: Thu, 8 Sep 2016 15:29:11 +0200 Subject: [PATCH] Kleine SQL Korrektur in Funktion search --- include/organisationseinheit.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/organisationseinheit.class.php b/include/organisationseinheit.class.php index e6e0c4bd3..092c710b9 100644 --- a/include/organisationseinheit.class.php +++ b/include/organisationseinheit.class.php @@ -572,7 +572,7 @@ class organisationseinheit extends basis_db foreach($searchItem as $value) { $qry.=' OR (LOWER(oe_kurzbz)=LOWER('.$this->db_add_param($value).')) - OR (LOWER(bezeichnung)=LOWER('.$this->db_add_param($value).'))'; + OR (LOWER(bezeichnung) LIKE LOWER(\'%'.$value.'%\'))'; } $qry.= ' ORDER BY organisationseinheittyp_kurzbz, bezeichnung;';