Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-12-01 00:26:34 +0300
committerGitHub <noreply@github.com>2021-12-01 00:26:34 +0300
commit9efa63a654145fcb315d16c5e6d21ab3b96c6f01 (patch)
tree79da4eb25c95946134f9248fcfe7467fe2e711e1
parent902187450aa44f83cf32215c07f5c942f74bee36 (diff)
Fix possible notice when comparing goal data (#18355)
happened as some metrics might have been formatted twice
-rw-r--r--plugins/Goals/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php
index 4938b88856..ba67f6aa1d 100644
--- a/plugins/Goals/API.php
+++ b/plugins/Goals/API.php
@@ -496,7 +496,7 @@ class API extends \Piwik\Plugin\API
'idGoal' => $idGoal,
'columns' => $columns,
'showAllGoalSpecificMetrics' => $showAllGoalSpecificMetrics,
- 'format_metrics' => Common::getRequestVar('format_metrics', 'bc'),
+ 'format_metrics' => !empty($compare) ? 0 : Common::getRequestVar('format_metrics', 'bc'),
), $default = []);
Archiver::$ARCHIVE_DEPENDENT = true;
$tableSegmented->filter('Piwik\Plugins\Goals\DataTable\Filter\AppendNameToColumnNames',