Skip to content

Commit

Permalink
Translation hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Apr 4, 2024
1 parent d4e8b7c commit cd2649d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Service/VariableService.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ public function replaceFilterVariables($reportMetadata)
if (isset($filteroptions['filter'])) {
foreach ($filteroptions['filter'] as $key => $value) {
$parsed = $this->parseFilter($value['value']);
$format = $this->parseFormat($value['value']);

if (!$parsed) break;
if (!$parsed) continue;

// if a parser is selected in the chart options, it should also be valid here automatically
if (isset($reportMetadata['chartoptions'])) {
Expand All @@ -162,6 +161,9 @@ public function replaceFilterVariables($reportMetadata)
$format = $chartOptions['scales']['xAxes']['time']['parser'];
}
}
$format = $this->parseFormat($value['value']);

$this->logger->info('filterreplace: ' . $format);

// translate commonly known X timestamp format to U for php
if ($format === 'X') $format = 'U';
Expand Down

0 comments on commit cd2649d

Please sign in to comment.