diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php
index 156090fa0..c69392746 100644
--- a/Layout/default/Preorder/Index.php
+++ b/Layout/default/Preorder/Index.php
@@ -107,6 +107,23 @@
+
+
+
+
+
+
+
+
+
diff --git a/application/Preorder/PreorderController.php b/application/Preorder/PreorderController.php
index 97c634862..9f9b02e87 100644
--- a/application/Preorder/PreorderController.php
+++ b/application/Preorder/PreorderController.php
@@ -144,6 +144,15 @@ class PreorderController extends mfBaseController {
}
}
+ if(array_key_exists("unit_missing", $filter)) {
+ if($filter['unit_missing'] == "yes") {
+ $new_filter['adb_wohneinheit_id'] = null;
+ } elseif($filter['unit_missing'] == "no") {
+ $new_filter['adb_wohneinheit_id'] = true;
+ }
+ unset($filter['unit_missing']);
+ }
+
if(array_key_exists("attributes", $filter) && count($filter['attributes'])) {
}
diff --git a/application/Preorder/PreorderModel.php b/application/Preorder/PreorderModel.php
index 4117da7a4..40dfb3cab 100644
--- a/application/Preorder/PreorderModel.php
+++ b/application/Preorder/PreorderModel.php
@@ -372,6 +372,8 @@ class PreorderModel {
$where .= " AND adb_wohneinheit_id IN (".implode(",",$adb_wohneinheit_id).")";
} elseif($adb_wohneinheit_id === null) {
$where .= " AND adb_wohneinheit_id IS NULL";
+ } elseif($adb_wohneinheit_id === true) {
+ $where .= " AND adb_wohneinheit_id IS NOT NULL AND adb_wohneinheit_id > 0";
}
}
@@ -408,6 +410,15 @@ class PreorderModel {
}
}
+ if(array_key_exists("connection_count", $filter)) {
+ $connection_count = $filter['connection_count'];
+ if(intval($connection_count) === 1) {
+ $where .= " AND connection_count = 1";
+ } elseif(intval($connection_count) === 2) {
+ $where .= " AND connection_count > 1";
+ }
+ }
+
if(array_key_exists("ucode", $filter)) {
$ucode = FronkDB::singleton()->escape($filter['ucode']);
if($ucode) {