diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-07-10 01:41:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 01:41:19 +0300 |
commit | d72b8bf705dabcdbd4d00876b2a3be9f58056e61 (patch) | |
tree | 818b198fbf5bd7e0a4207c7963bb30612c7f35c2 /plugins/SegmentEditor | |
parent | b0553730a95c5b6cd7408c5834ba8acd029c7375 (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.php | 2 |
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); |