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:
Diffstat (limited to 'plugins/Goals/API.php')
-rw-r--r--plugins/Goals/API.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php
index aea16ad70e..ad58ec4310 100644
--- a/plugins/Goals/API.php
+++ b/plugins/Goals/API.php
@@ -210,6 +210,7 @@ class Piwik_Goals_API
}
$archive = Piwik_Archive::build($idSite, $period, $date);
$dataTable = $archive->getDataTable($recordNameFinal);
+
$dataTable->filter('Sort', array(Piwik_Archive::INDEX_ECOMMERCE_ITEM_REVENUE));
$dataTable->queueFilter('ReplaceColumnNames');
$dataTable->queueFilter('ReplaceSummaryRowLabel');
@@ -428,7 +429,7 @@ class Piwik_Goals_API
{
Piwik::checkUserHasViewAccess($idSite);
$archive = Piwik_Archive::build($idSite, $period, $date, $segment);
- $dataTable = $archive->getNumeric($toFetch);
+ $dataTable = $archive->getDataTableFromNumeric($toFetch);
return $dataTable;
}