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@matomo.org>2020-07-10 01:41:19 +0300
committerGitHub <noreply@github.com>2020-07-10 01:41:19 +0300
commitd72b8bf705dabcdbd4d00876b2a3be9f58056e61 (patch)
tree818b198fbf5bd7e0a4207c7963bb30612c7f35c2 /plugins/SegmentEditor
parentb0553730a95c5b6cd7408c5834ba8acd029c7375 (diff)
Fix behaviour for segments using "not equals" or "not contains" on an action dimension (#16172)
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r--plugins/SegmentEditor/SegmentEditor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php
index de89ca2c98..59ac72ee9c 100644
--- a/plugins/SegmentEditor/SegmentEditor.php
+++ b/plugins/SegmentEditor/SegmentEditor.php
@@ -201,12 +201,12 @@ class SegmentEditor extends \Piwik\Plugin
if (empty($segment)) {
return null;
}
- $segment = new Segment($segment, [$idSite]);
// get period
$date = Common::getRequestVar('date', false);
$periodStr = Common::getRequestVar('period', false);
$period = Period\Factory::build($periodStr, $date);
+ $segment = new Segment($segment, [$idSite], $period->getDateStart(), $period->getDateEnd());
// check if archiving is enabled. if so, the segment should have been processed.
$isArchivingDisabled = Rules::isArchivingDisabledFor([$idSite], $segment, $period);