diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-12-01 00:26:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 00:26:34 +0300 |
commit | 9efa63a654145fcb315d16c5e6d21ab3b96c6f01 (patch) | |
tree | 79da4eb25c95946134f9248fcfe7467fe2e711e1 /plugins | |
parent | 902187450aa44f83cf32215c07f5c942f74bee36 (diff) |
Fix possible notice when comparing goal data (#18355)
happened as some metrics might have been formatted twice
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Goals/API.php | 2 |
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', |