diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-24 14:06:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-24 14:06:48 +0300 |
commit | 2915d75f69f2340ee6dcf1a9f4401b658fb8c966 (patch) | |
tree | 04cc3e801ae5f6d6fdbecc981c6d6e9d94403440 /plugins/ScheduledReports | |
parent | b4627cf0324de59f29e8d6e7487f987617c5a4fd (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.php | 5 |
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; |