From 846b6ef77e5a7d3d3674fc75ec0216f19cce91b6 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 20 Apr 2023 12:05:50 +0200 Subject: [PATCH] Fixed Preordernotiviation sending --- .../Preordernotification/PreordernotificationModel.php | 4 ++-- .../PreordernotificationLog/PreordernotificationLogModel.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/application/Preordernotification/PreordernotificationModel.php b/application/Preordernotification/PreordernotificationModel.php index 4334ada32..94c630848 100644 --- a/application/Preordernotification/PreordernotificationModel.php +++ b/application/Preordernotification/PreordernotificationModel.php @@ -162,14 +162,14 @@ class PreordernotificationModel { if(array_key_exists("send_finish", $filter)) { $send_finish = $db->escape($filter['send_finish']); if($send_finish === null) { - $where .= " AND Preordernotification.send_finish = NULL"; + $where .= " AND Preordernotification.send_finish IS NULL"; } } if(array_key_exists("send_lock", $filter)) { $send_lock = $db->escape($filter['send_lock']); if($send_lock === null) { - $where .= " AND Preordernotification.send_lock = NULL"; + $where .= " AND Preordernotification.send_lock IS NULL"; } } diff --git a/application/PreordernotificationLog/PreordernotificationLogModel.php b/application/PreordernotificationLog/PreordernotificationLogModel.php index bd82fbb81..3b088d453 100644 --- a/application/PreordernotificationLog/PreordernotificationLogModel.php +++ b/application/PreordernotificationLog/PreordernotificationLogModel.php @@ -4,6 +4,7 @@ class PreordernotificationLogModel { public $preordernotification_id; public $preorder_id; public $email; + public $sent; public $create_by = null; public $edit_by = null; public $create = null;