Skip to content

Commit

Permalink
2.60.0 Bug fix for export of KML list in log session details - discov…
Browse files Browse the repository at this point in the history
…ered during log review
  • Loading branch information
classaxe committed Oct 30, 2023
1 parent f5fc1ed commit b116b75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Controller/Web/Logsessions/Export/Signals.php
Expand Up @@ -60,9 +60,9 @@ public function kml(
$type,
$active
) {
if (!$listener = $this->getValidReportingListener($id)) {
if (!$this->logsessionRepository->find($id)) {
return $this->redirectToRoute(
'listeners',
'logsessions',
[ '_locale' => $_locale, 'system' => $system ]
);
}
Expand All @@ -73,19 +73,19 @@ public function kml(
if ($type !== '*') {
$filter['type'] = explode(',', $type);
}
$args = ['listenerID' => $id];
$args = ['logsessionID' => $id];
$parameters = [
'colors' => $this->typeRepository->getMapIconColorForCodes(),
'description' => "Generated by ".strToUpper($system)." on ".date('Y-m-d'),
'filter' => $filter,
'_locale' => $_locale,
'signals' => $this->signalRepository->getSignals($args),
'title' => strToUpper($system).' stations received by '.$listener->getName(),
'title' => strToUpper($system).' stations received in session '.$id,
'types' => $this->typeRepository->getAll()
];
$parameters = array_merge($parameters, $this->parameters);
$filename =
"listener_"
"session_"
.$id
."_signals"
.($type !== '*' ? "_type_".str_replace(',','_', $type) : '')
Expand Down

0 comments on commit b116b75

Please sign in to comment.