From e30d22a793cc20c861d9e39f7db0e4ca43ced3b6 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 7 Aug 2025 17:12:05 +0200 Subject: [PATCH] added new bp filter --- Layout/default/Preorder/Index.php | 10 ++++++++++ application/Preorder/PreorderModel.php | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/Layout/default/Preorder/Index.php b/Layout/default/Preorder/Index.php index f2b3ac72f..0e8a3868c 100644 --- a/Layout/default/Preorder/Index.php +++ b/Layout/default/Preorder/Index.php @@ -414,6 +414,16 @@ $pagination_entity_name = "Vorbestellungen"; + +
+ + +
+ diff --git a/application/Preorder/PreorderModel.php b/application/Preorder/PreorderModel.php index ed62298b3..71d276c71 100644 --- a/application/Preorder/PreorderModel.php +++ b/application/Preorder/PreorderModel.php @@ -1035,6 +1035,14 @@ class PreorderModel } } + if (array_key_exists("attributes_bep_specified", $filter)) { + if ($filter['attributes_bep_specified'] == 1) { + $where .= " AND JSON_EXTRACT(tt_preorder.attributes, \"$.bep_specified\") = 1"; + } else if ($filter['attributes_bep_specified'] == 0) { + $where .= " AND (JSON_EXTRACT(tt_preorder.attributes, \"$.bep_specified\") IS NULL OR JSON_EXTRACT(tt_preorder.attributes, \"$.bep_specified\") = '0')"; + } + } + if (array_key_exists("create_from", $filter)) { $create_from = $filter['create_from']; if ($create_from) {