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 <diosmosis@users.noreply.github.com>2019-12-24 14:06:48 +0300
committerGitHub <noreply@github.com>2019-12-24 14:06:48 +0300
commit2915d75f69f2340ee6dcf1a9f4401b658fb8c966 (patch)
tree04cc3e801ae5f6d6fdbecc981c6d6e9d94403440 /plugins/ScheduledReports
parentb4627cf0324de59f29e8d6e7487f987617c5a4fd (diff)
ProxySite related changes to let comparisons work properly (#15265)
* Make sure ProxySite will disable post processor in Visualization where API Proxy is called directly. * Use Request::process so events are used. * Remove disable_datatable_post_processing, since it will propagate. * Only disable for root API request. * Move nestedApiInvocationCount increment to top of method. * Directly filter referrer type labels since there are a small number of them (helps comparison & proxysite). * Fix regression. * Update expected test files. * Another regression fixed. * Try to fix build again. * fix tests
Diffstat (limited to 'plugins/ScheduledReports')
-rw-r--r--plugins/ScheduledReports/Controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/ScheduledReports/Controller.php b/plugins/ScheduledReports/Controller.php
index 22b977cdd5..ecbf950be4 100644
--- a/plugins/ScheduledReports/Controller.php
+++ b/plugins/ScheduledReports/Controller.php
@@ -114,8 +114,9 @@ class Controller extends \Piwik\Plugin\Controller
$savedSegmentsById = array(
'' => Piwik::translate('SegmentEditor_DefaultAllVisits')
- );
- foreach (APISegmentEditor::getInstance()->getAll($this->idSite) as $savedSegment) {
+ );
+ $response = Request::processRequest("SegmentEditor.getAll", ['idSite' => $this->idSite], $defaultRequest = []);
+ foreach ($response as $savedSegment) {
$savedSegmentsById[$savedSegment['idsegment']] = $savedSegment['name'];
}
$view->savedSegmentsById = $savedSegmentsById;