Merge pull request #2509 from phl0/improveErrorhandlingOnWrongStationcallsignImport

Improve errror handling on importing wrong station callsigns
pull/2510/head
Peter Goodhall 2023-09-22 08:19:18 +01:00 zatwierdzone przez GitHub
commit 3b5ec17071
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2888,7 +2888,8 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
}
if ((!$skipStationCheck) && ($station_id != 0) && (strtoupper($record['station_callsign']) != strtoupper($station_profile_call))) { // Check if station_call from import matches profile ONLY when submitting via GUI.
return "Wrong station_callsign ".$record['station_callsign']." while importing QSO with ".$record['call']." for ".$station_profile_call." : SKIPPED";
return "Wrong station callsign <b>\"".htmlentities($record['station_callsign'])."\"</b> while importing QSO with ".$record['call']." for <b>".$station_profile_call."</b> : SKIPPED" .
"<br>See the <a target=\"_blank\" href=\"https://github.com/magicbug/Cloudlog/wiki/ADIF-file-can't-be-imported\">Cloudlog Wiki</a> for hints about errors in ADIF files.";
}
$CI =& get_instance();