From 04e3eafbb18e6946b323b2ba00b10e7c07586ca1 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 30 May 2022 14:20:42 +0200 Subject: [PATCH] Apply strtoupper to DARC DOK on server side --- application/models/Logbook_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 2a252731..ae24eede 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -179,7 +179,7 @@ class Logbook_model extends CI_Model { 'COL_SOTA_REF' => trim($this->input->post('sota_ref')), 'COL_SIG' => trim($this->input->post('sig')), 'COL_SIG_INFO' => trim($this->input->post('sig_info')), - 'COL_DARC_DOK' => trim($darc_dok), + 'COL_DARC_DOK' => strtoupper(trim($darc_dok)), 'COL_NOTES' => $this->input->post('notes'), ); @@ -664,7 +664,7 @@ class Logbook_model extends CI_Model { 'COL_TX_PWR' => $txpower, 'COL_SIG' => $this->input->post('sig'), 'COL_SIG_INFO' => $this->input->post('sig_info'), - 'COL_DARC_DOK' => $this->input->post('darc_dok'), + 'COL_DARC_DOK' => strtoupper($this->input->post('darc_dok')), 'COL_QTH' => $this->input->post('qth'), 'COL_PROP_MODE' => $this->input->post('prop_mode'), 'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')), @@ -2526,7 +2526,7 @@ class Logbook_model extends CI_Model { 'COL_CQZ' => $cq_zone, 'COL_CREDIT_GRANTED' => (!empty($record['credit_granted'])) ? $record['credit_granted'] : '', 'COL_CREDIT_SUBMITTED' => (!empty($record['credit_submitted'])) ? $record['credit_submitted'] : '', - 'COL_DARC_DOK' => (!empty($record['darc_dok'])) ? $record['darc_dok'] : '', + 'COL_DARC_DOK' => (!empty($record['darc_dok'])) ? strtoupper($record['darc_dok']) : '', 'COL_DISTANCE' => (!empty($record['distance'])) ? $record['distance'] : null, 'COL_DXCC' => $dxcc[0], 'COL_EMAIL' => (!empty($record['email'])) ? $record['email'] : '',