From 8627e2a3e22f0ebf94496ec527e58b32a86ff542 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sun, 22 Feb 2026 09:31:15 +0100 Subject: [PATCH] group prop mode check --- application/models/Logbook_model.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index fe136e35c..6ecc4394f 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -5954,7 +5954,10 @@ class Logbook_model extends CI_Model { $this->db->group_end(); // Only add check for unsupported modes if not empty. Otherwise SQL will fail if (!empty($this->config->item('lotw_unsupported_prop_modes'))) { - $this->db->where_not_in('COL_PROP_MODE', $this->config->item('lotw_unsupported_prop_modes')); + $this->db->group_start(); + $this->db->where('COL_PROP_MODE', null); + $this->db->or_where_not_in('COL_PROP_MODE', $this->config->item('lotw_unsupported_prop_modes')); + $this->db->group_end(); } $this->db->where('COL_TIME_ON >=', $start_date); $this->db->where('COL_TIME_ON <=', $end_date);