give dxcc higher priority when doing adif import

added ucwords for country to edit qso to be consistent with adif import
and create
这个提交包含在:
Thomas Werzmirzowsky 2022-06-12 10:37:14 +02:00
父节点 e2b6a71d7c
当前提交 e59d31b1c7

查看文件

@ -558,7 +558,7 @@ class Logbook_model extends CI_Model {
$entity = $this->get_entity($this->input->post('dxcc_id'));
$stationId = $this->input->post('station_profile');
$country = $entity['name'];
$country = ucwords(strtolower($entity['name']));
// be sure that station belongs to user
$CI =& get_instance();
@ -2228,12 +2228,11 @@ class Logbook_model extends CI_Model {
}
// Store or find country name
if(isset($record['country'])) {
// dxcc has higher priority to be consistent with qso create and edit
if (isset($dxcc[1])) {
$country = ucwords(strtolower($dxcc[1]));
} else if (isset($record['country'])) {
$country = $record['country'];
} else {
if (isset($dxcc[1])) {
$country = ucwords(strtolower($dxcc[1]));
}
}
// RST recevied