+
+
+
+
+
+
" />
diff --git a/application/ConstructionConsent/ConstructionConsent.php b/application/ConstructionConsent/ConstructionConsent.php
index 13678782f..ec54bedb7 100644
--- a/application/ConstructionConsent/ConstructionConsent.php
+++ b/application/ConstructionConsent/ConstructionConsent.php
@@ -353,6 +353,7 @@ class ConstructionConsent extends mfBaseModel {
$where = self::getSqlFilter($filter);
$sql = "SELECT COUNT(*) as cnt FROM ConstructionConsent
+ LEFT JOIN ".ADDRESSDB_DBNAME.".view_hausnummer ON (ConstructionConsent.adb_hausnummer_id = view_hausnummer.hausnummer_id)
WHERE $where";
//mfLoghandler::singleton()->debug($sql);
@@ -377,6 +378,7 @@ class ConstructionConsent extends mfBaseModel {
$where = self::getSqlFilter($filter);
$sql = "SELECT * FROM ConstructionConsent
+ LEFT JOIN ".ADDRESSDB_DBNAME.".view_hausnummer ON (ConstructionConsent.adb_hausnummer_id = view_hausnummer.hausnummer_id)
WHERE $where
ORDER BY $order";
@@ -494,6 +496,13 @@ class ConstructionConsent extends mfBaseModel {
}
}
+ if(array_key_exists("network", $filter)) {
+ $network = FronkDB::singleton()->escape($filter["network"]);
+ if($network) {
+ $where .= " AND view_hausnummer.netzgebiet_id=$network";
+ }
+ }
+
if(array_key_exists("add-where", $filter)) {