minor fix
This commit is contained in:
@@ -506,7 +506,7 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
$format = "tree";
|
||||
}
|
||||
|
||||
if(!$search_street) {
|
||||
if(!$search_street && !$search_cluster_id) {
|
||||
return mfResponse::BadRequest(['message' => "Searchstring cannot be empty!"]);
|
||||
}
|
||||
|
||||
@@ -538,7 +538,7 @@ class AddressdbApicontroller extends mfBaseApicontroller {
|
||||
$where .= " AND Hausnummer.netzgebiet_id IN (".implode(",", $this->filter_salescluster_ids).")";
|
||||
}
|
||||
if($search_cluster_id) {
|
||||
$where .= " AND netzgebiet_extref='$search_cluster_idh'";
|
||||
$where .= " AND Netzgebiet.extref='$search_cluster_id'";
|
||||
}
|
||||
//echo $where;
|
||||
//var_dump($this->filter_salescluster_ids);exit;
|
||||
|
||||
Reference in New Issue
Block a user