Merge branch 'fix-aclog-message-spaces' into 'master'

Fix Space Prepended to County Name When Logging to N3FJP ACLog (issue #156)

Closes #156

See merge request gridtracker.org/gridtracker!196

If this is changing anything in the UI or operational behavior, please prepare to update the wiki!
merge-requests/203/merge
Matthew Chambers 2022-09-09 03:12:18 +00:00
commit f25c0da8ff
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -2864,7 +2864,7 @@ function aclAction(action)
function adifField(record, key)
{
if (key in record) return record[key];
if (key in record) return record[key].trim();
else return "";
}
function sendACLogMessage(record, port, address)
@ -2938,7 +2938,10 @@ function sendACLogMessage(record, port, address)
);
report += aclUpdateControlValue("TXTENTRYITUZ", adifField(record, "ITUZ"));
report += aclUpdateControlValue("TXTENTRYCQZONE", adifField(record, "CQZ"));
report += aclUpdateControlValue("TXTENTRYCOUNTYR", adifField(record, "CNTY"));
report += aclUpdateControlValue(
"TXTENTRYCOUNTYR",
adifField(record, "CNTY").replaceAll(", ", ",")
);
var sentSpcNum = false;
if (adifField(record, "SRX").length > 0)