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:
authordiosmosis <benaka@piwik.pro>2014-11-08 04:37:38 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-08 04:37:38 +0300
commit08e1a4c2d0bbc9744b71e35517ea3493650866de (patch)
tree0ee0ac10696a2bae523b389d70b0845e23e7ba3e /core/DataTable
parent68d77438edb1a492c9ef7943c16ac9874175b362 (diff)
Convert MultiSites/API to use processed metric instead of CalculateEvolutionFilter.
Diffstat (limited to 'core/DataTable')
-rwxr-xr-xcore/DataTable/Filter/CalculateEvolutionFilter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/DataTable/Filter/CalculateEvolutionFilter.php b/core/DataTable/Filter/CalculateEvolutionFilter.php
index 0ef6a30a2f..ce1c778b86 100755
--- a/core/DataTable/Filter/CalculateEvolutionFilter.php
+++ b/core/DataTable/Filter/CalculateEvolutionFilter.php
@@ -25,6 +25,8 @@ use Piwik\Site;
*
* ((currentValue - pastValue) / pastValue) * 100
*
+ * TODO: deprecate and use Evolutionmetric
+ *
* @api
*/
class CalculateEvolutionFilter extends ColumnCallbackAddColumnPercentage
@@ -73,6 +75,7 @@ class CalculateEvolutionFilter extends ColumnCallbackAddColumnPercentage
// if the site this is for doesn't support ecommerce & this is for the revenue_evolution column,
// we don't add the new column
+ // TODO: replicate this logic in MultiSites/API.php (create RevenueEvolutionMetric in Goals & add this check)
if ($currentValue === false
&& $this->isRevenueEvolution
&& !Site::isEcommerceEnabledFor($row->getColumn('label'))