diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-08 07:25:21 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-08 07:25:21 +0300 |
commit | 41f6d051a3c6a4083a807acdea4e681a02f8f9cb (patch) | |
tree | 5dd88b53e4f6b7ac81ea75d166b006aef69613a7 /core/DataTable | |
parent | 97dc9e2897fd5d365926af05078cf4f9941dd01a (diff) |
Documented Metric class and fixed regression in last commit's refactor.
Diffstat (limited to 'core/DataTable')
-rw-r--r-- | core/DataTable/Filter/AddColumnsProcessedMetrics.php | 4 | ||||
-rw-r--r-- | core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/DataTable/Filter/AddColumnsProcessedMetrics.php b/core/DataTable/Filter/AddColumnsProcessedMetrics.php index 778a202b8b..e95c351f4e 100644 --- a/core/DataTable/Filter/AddColumnsProcessedMetrics.php +++ b/core/DataTable/Filter/AddColumnsProcessedMetrics.php @@ -82,8 +82,8 @@ class AddColumnsProcessedMetrics extends BaseFilter private function deleteRowsWithNoVisit(DataTable $table) { foreach ($table->getRows() as $key => $row) { - $nbVisits = Metric::getMetric($row, Metrics::INDEX_NB_VISITS); - $nbActions = Metric::getMetric($row, Metrics::INDEX_NB_ACTIONS); + $nbVisits = Metric::getMetric($row, 'nb_visits'); + $nbActions = Metric::getMetric($row, 'nb_actions'); if ($nbVisits == 0 && $nbActions == 0 diff --git a/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php b/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php index 1410103174..1c524adab2 100644 --- a/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php +++ b/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php @@ -163,7 +163,7 @@ class AddColumnsProcessedMetricsGoal extends AddColumnsProcessedMetrics { $result = array(); foreach ($table->getRows() as $row) { - $goals = Metric::getMetric($row, Metrics::INDEX_GOALS); + $goals = Metric::getMetric($row, 'goals'); if (!$goals) { continue; } |