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@piwik.org>2018-09-11 02:50:47 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-09-11 02:50:47 +0300
commit13aad03773d4576188ebd2db7971337ad4edca4f (patch)
tree1656358c1d3873189960147586e19d85650a8803 /plugins/Ecommerce/Controller.php
parent5eddf49927b7c36d1170521a3dc1aae9f2717435 (diff)
Fixes Ecommerce overview (#13405)
* Pass correct parameters to API call * use idSite property
Diffstat (limited to 'plugins/Ecommerce/Controller.php')
-rw-r--r--plugins/Ecommerce/Controller.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/plugins/Ecommerce/Controller.php b/plugins/Ecommerce/Controller.php
index 093eb40409..1d527f2f62 100644
--- a/plugins/Ecommerce/Controller.php
+++ b/plugins/Ecommerce/Controller.php
@@ -76,11 +76,21 @@ class Controller extends \Piwik\Plugins\Goals\Controller
{
$view = new View('@Ecommerce/conversionOverview');
$idGoal = Common::getRequestVar('idGoal', null, 'string');
+ $period = Common::getRequestVar('period', null, 'string');
+ $segment = Common::getRequestVar('segment', '', 'string');
+
+ $goalMetrics = Request::processRequest('Goals.get', [
+ 'idGoal' => $idGoal,
+ 'idSite' => $this->idSite,
+ 'date' => $this->strDate,
+ 'period' => $period,
+ 'segment' => $segment,
+ 'filter_limit' => '-1'
+ ], $default = []);
- $goalMetrics = Request::processRequest('Goals.get', array('idGoal' => $idGoal, 'filter_limit' => '-1', 'filter_offset' => '0'));
$dataRow = $goalMetrics->getFirstRow();
- $view->idSite = Common::getRequestVar('idSite', null, 'int');
+ $view->idSite = $this->idSite;
$view->idGoal = $idGoal;
if ($dataRow) {