mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
Merge pull request #2777 from AndreasK79/cqz_itu_fixes
CQ and ITU zone fixes
This commit is contained in:
@@ -1713,7 +1713,7 @@ class Logbook_model extends CI_Model {
|
||||
'COL_COUNTRY' => $country,
|
||||
'COL_CONT' => $this->input->post('continent'),
|
||||
'COL_DXCC' => $dxcc,
|
||||
'COL_CQZ' => $this->input->post('cqz'),
|
||||
'COL_CQZ' => $this->input->post('cqz') != '' ? $this->input->post('cqz') : null,
|
||||
'COL_ITUZ' => $this->input->post('ituz') != '' ? $this->input->post('ituz') : null,
|
||||
'COL_SAT_NAME' => $this->input->post('sat_name'),
|
||||
'COL_SAT_MODE' => $this->input->post('sat_mode'),
|
||||
|
||||
@@ -897,6 +897,10 @@ class Logbookadvanced_model extends CI_Model {
|
||||
$updatedData['COL_ITUZ'] = $callbook['ituz'];
|
||||
$updated = true;
|
||||
}
|
||||
if (!empty($callbook['cqz']) && empty($qso['COL_CQZ'])) {
|
||||
$updatedData['COL_CQZ'] = $callbook['cqz'];
|
||||
$updated = true;
|
||||
}
|
||||
if (empty($qso['COL_CONT'])) {
|
||||
$updatedData['COL_CONT'] = $this->logbook_model->getContinent($callbook['dxcc']);
|
||||
$updated = true;
|
||||
@@ -1328,6 +1332,10 @@ class Logbookadvanced_model extends CI_Model {
|
||||
$skipqrzupdate = true;
|
||||
} else {
|
||||
|
||||
if ($value == "null") {
|
||||
$value = null;
|
||||
}
|
||||
|
||||
$sql = "UPDATE ".$this->config->item('table_name')." JOIN station_profile ON ".$this->config->item('table_name').".station_id = station_profile.station_id SET " . $this->config->item('table_name').".".$column . " = ? WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?";
|
||||
|
||||
$query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));
|
||||
|
||||
Reference in New Issue
Block a user