From 309c0909f4869e5aa00783aacebf371527ebe9eb Mon Sep 17 00:00:00 2001 From: oesi Date: Mon, 13 Mar 2017 08:21:07 +0100 Subject: [PATCH] SQL Fehler in der Firmensuche im Vilesci behoben --- include/firma.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/firma.class.php b/include/firma.class.php index 0e98a3738..8a3d1921c 100644 --- a/include/firma.class.php +++ b/include/firma.class.php @@ -682,15 +682,15 @@ class firma extends basis_db if($filter!='') $qry.= " and ( lower(tbl_firma.name) like lower('%".$this->db_escape($filter)."%') - OR lower(kurzbz) like lower('%".$this->db_escape($filter)."%') + OR lower(tbl_standort.kurzbz) like lower('%".$this->db_escape($filter)."%') OR lower(tbl_adresse.name) like lower('%".$this->db_escape($filter)."%') - OR lower(plz) like lower('%".$this->db_escape($filter)."%') - OR lower(ort) like lower('%".$this->db_escape($filter)."%') - OR lower(strasse) like lower('%".$this->db_escape($filter)."%') + OR lower(tbl_adresse.plz) like lower('%".$this->db_escape($filter)."%') + OR lower(tbl_adresse.ort) like lower('%".$this->db_escape($filter)."%') + OR lower(tbl_adresse.strasse) like lower('%".$this->db_escape($filter)."%') OR lower(tbl_standort.bezeichnung) like lower('%".$this->db_escape($filter)."%') - OR lower(anmerkung) like lower('%".$this->db_escape($filter)."%') + OR lower(tbl_firma.anmerkung) like lower('%".$this->db_escape($filter)."%') ".(is_numeric($filter)?" OR tbl_firma.firma_id='".$this->db_escape($filter)."'":'')." OR tbl_firma.firma_id IN (SELECT firma_id FROM public.tbl_firmatag WHERE firma_id=tbl_firma.firma_id AND lower(tag) like lower('%".$this->db_escape($filter)."%'))