added filter for sended emails

This commit is contained in:
Luca Haid
2025-07-03 12:00:36 +02:00
parent 4bec93b14e
commit 72858d3eb3
5 changed files with 133 additions and 6 deletions

View File

@@ -1076,6 +1076,13 @@ class PreorderModel
}
}
if (array_key_exists("onlyShowCustomMailSent", $filter)) {
// Only apply the filter if the value is truthy (e.g., true, 1)
if ($filter['onlyShowCustomMailSent']) {
$where .= " AND tt_preorder.id IN (SELECT preorder_id FROM PreorderStatusnotificationLog WHERE email_type = '300-custom')";
}
}
// custom where clause
if (array_key_exists("add-where", $filter)) {
$where .= " " . $filter['add-where'];