Merge pull request #1492 from Werzi2001/dxcc_vs_country

DXCC vs. Country
pull/1553/head
Peter Goodhall 2022-07-29 08:02:28 +01:00 zatwierdzone przez GitHub
commit b03515f2af
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -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();
@ -2231,12 +2231,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