added filter for sended emails
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user