From a75a46215c9512ff90e4ccd0869948232ace0fab Mon Sep 17 00:00:00 2001 From: phl0 Date: Sun, 28 Jul 2024 19:11:54 +0200 Subject: [PATCH] Export county in general if set --- application/libraries/AdifHelper.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/application/libraries/AdifHelper.php b/application/libraries/AdifHelper.php index 980988430..91e44165d 100644 --- a/application/libraries/AdifHelper.php +++ b/application/libraries/AdifHelper.php @@ -198,8 +198,6 @@ class AdifHelper { $line .= $this->getAdifFieldLine("MY_STATE", $qso->state); - // We fill county only if it has a value and it's USA, Alaska, Hawaii or Russia (European or Asiatic). Other countries are not supported at the moment due to complex ADIF specs - if ($qso->station_cnty) { switch ($qso->station_dxcc) { case '6': @@ -207,15 +205,9 @@ class AdifHelper { case '291': $county = trim($qso->state) . "," . trim($qso->station_cnty); break; - case '15': - case '54': - case '61': - case '126': - case '151': + default: $county = trim($qso->station_cnty); break; - default: - $county = ''; } } else { $county = '';