mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-21 15:56:30 +00:00
[API] When looking up a grid only do first 4 chars
This commit is contained in:
parent
ccb9f592b3
commit
24f3b3397c
@ -2037,6 +2037,9 @@ class Logbook_model extends CI_Model
|
||||
$logbooks_locations_array = $StationLocationsArray;
|
||||
}
|
||||
|
||||
// Only take the first 4 characters of the grid
|
||||
$grid = substr($grid, 0, 4);
|
||||
|
||||
$this->db->select('COL_GRIDSQUARE');
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->group_start();
|
||||
|
Loading…
Reference in New Issue
Block a user