From 3c0dd0ec759ffab7b92df690fd64ef88548ff266 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 1 Jan 2025 13:31:48 +0000 Subject: [PATCH] Remove doubling WWFF-Ref to SIG-Fields --- application/libraries/AdifHelper.php | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/application/libraries/AdifHelper.php b/application/libraries/AdifHelper.php index 6151b59df..392122608 100644 --- a/application/libraries/AdifHelper.php +++ b/application/libraries/AdifHelper.php @@ -234,25 +234,11 @@ class AdifHelper { $line .= $this->getAdifFieldLine("MY_CNTY", $county); - $stationsSig = $qso->station_sig; - // If MY_SIG is WWFF or "" and there's a station_wwff set, use data from station_wwff - if ((empty($stationsSig) || $stationsSig === "WWFF") && !empty($qso->station_wwff)) { - $line .= $this->getAdifFieldLine("MY_SIG", "WWFF"); - $line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_wwff); - } else { - $line .= $this->getAdifFieldLine("MY_SIG", $stationsSig); - $line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_sig_info); - } + $line .= $this->getAdifFieldLine("MY_SIG", $qso->station_sig); + $line .= $this->getAdifFieldLine("MY_SIG_INFO", $qso->station_sig_info); - $sig = $qso->{'COL_SIG'}; - // If SIG is WWFF or "" and there's a WWFF_REF set, use data from COL_WWFF_REF - if ((empty($sig) || $sig === "WWFF") && !empty($qso->{'COL_WWFF_REF'})) { - $line .= $this->getAdifFieldLine("SIG", "WWFF"); - $line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_WWFF_REF'}); - } else { - $line .= $this->getAdifFieldLine("SIG", $sig); - $line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_SIG_INFO'}); - } + $line .= $this->getAdifFieldLine("SIG", $qso->{'COL_SIG'}); + $line .= $this->getAdifFieldLine("SIG_INFO", $qso->{'COL_SIG_INFO'}); /* Missing: