Fix VUCC grids query to match substring correctly

Updated the query to use or_like on COL_VUCC_GRIDS instead of applying SUBSTRING, ensuring proper matching of the grid prefix. This resolves issues with grid searches not returning expected results.
这个提交包含在:
Peter Goodhall 2025-08-02 22:57:26 +01:00
父节点 f030769b5d
当前提交 1951bb7f29

查看文件

@ -2079,7 +2079,7 @@ class Logbook_model extends CI_Model
$this->db->where_in('station_id', $logbooks_locations_array);
$this->db->group_start();
$this->db->like('SUBSTRING(COL_GRIDSQUARE, 1, 4)', substr($grid, 0, 4));
$this->db->or_like('SUBSTRING(COL_VUCC_GRIDS, 1, 4)', substr($grid, 0, 4));
$this->db->or_like('COL_VUCC_GRIDS', substr($grid, 0, 4));
$this->db->group_end();
if ($band != null && $band != 'SAT') {