From d209d4d7feff91ed907a6a64ad47e7fe9c7b71bf Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 28 Nov 2022 12:37:44 +0100 Subject: [PATCH] Fixed error in wohneinheit query --- application/Api/v1/PreorderApicontroller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Api/v1/PreorderApicontroller.php b/application/Api/v1/PreorderApicontroller.php index 16226eb8f..5007fabdf 100644 --- a/application/Api/v1/PreorderApicontroller.php +++ b/application/Api/v1/PreorderApicontroller.php @@ -190,7 +190,7 @@ class PreorderApicontroller extends mfBaseApicontroller { $where .= " AND netzgebiet_id IN (".implode(',', $this->filter_salescluster_ids).")"; } - $sql = "SELECT * FROM view_wohneinheit WHERE 1=1 $where AND hausnummer_id=".$address->hausnummer_id; + $sql = "SELECT * FROM view_wohneinheit WHERE $where AND hausnummer_id=".$address->hausnummer_id; $res = $this->db()->query($sql); if($this->db()->num_rows($res)) { $unit = $this->db()->fetch_object($res);