kopia lustrzana https://github.com/magicbug/Cloudlog
Fix DXCC country matching case sensitivity
Updated SQL queries in Workabledxcc controller and model to use case-insensitive matching for DXCC country names by comparing UPPER(COL_COUNTRY) to UPPER(?). This resolves issues where country names with different cases were not matched correctly.pull/3320/head
rodzic
9fb5feffe7
commit
12127b8d85
|
@ -104,7 +104,8 @@ class Workabledxcc extends CI_Controller
|
|||
$this->db->where('COL_PROP_MODE !=', 'SAT');
|
||||
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->where('COL_COUNTRY', urldecode($country));
|
||||
// Fix case sensitivity issue for DXCC country matching
|
||||
$this->db->where('UPPER(COL_COUNTRY) = UPPER(?)', urldecode($country));
|
||||
|
||||
$query = $this->db->get($this->config->item('table_name'), 1, 0);
|
||||
foreach ($query->result() as $workedBeforeRow) {
|
||||
|
@ -146,7 +147,8 @@ class Workabledxcc extends CI_Controller
|
|||
|
||||
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->where('COL_COUNTRY', urldecode($country));
|
||||
// Fix case sensitivity issue for DXCC country matching
|
||||
$this->db->where('UPPER(COL_COUNTRY) = UPPER(?)', urldecode($country));
|
||||
|
||||
$query = $this->db->get($this->config->item('table_name'), 1, 0);
|
||||
foreach ($query->result() as $workedBeforeRow) {
|
||||
|
|
|
@ -271,7 +271,8 @@ class Workabledxcc_model extends CI_Model
|
|||
$this->db->where('COL_PROP_MODE !=', 'SAT');
|
||||
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->where('COL_COUNTRY', urldecode($country));
|
||||
// Fix case sensitivity issue for DXCC country matching
|
||||
$this->db->where('UPPER(COL_COUNTRY) = UPPER(?)', urldecode($country));
|
||||
|
||||
$query = $this->db->get($this->config->item('table_name'), 1, 0);
|
||||
foreach ($query->result() as $workedBeforeRow) {
|
||||
|
@ -313,7 +314,8 @@ class Workabledxcc_model extends CI_Model
|
|||
|
||||
|
||||
$this->db->where_in('station_id', $logbooks_locations_array);
|
||||
$this->db->where('COL_COUNTRY', urldecode($country));
|
||||
// Fix case sensitivity issue for DXCC country matching
|
||||
$this->db->where('UPPER(COL_COUNTRY) = UPPER(?)', urldecode($country));
|
||||
|
||||
$query = $this->db->get($this->config->item('table_name'), 1, 0);
|
||||
foreach ($query->result() as $workedBeforeRow) {
|
||||
|
|
Ładowanie…
Reference in New Issue