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:
authorThomas Steur <tsteur@users.noreply.github.com>2021-07-28 00:29:12 +0300
committerGitHub <noreply@github.com>2021-07-28 00:29:12 +0300
commit023e9e36804d6954f9d30283eecc0d0c22ecf11f (patch)
tree9b35f0ce812c18662657d6a02c79d74f3f415306
parent6ef2e84c6f1badb4c826c8c4d867a7d095f9fdfc (diff)
Fix dimension1 is not a supported segment. (#17822)4.4.0-rc3
-rw-r--r--core/DataAccess/Model.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/DataAccess/Model.php b/core/DataAccess/Model.php
index a15cbf337a..3848c6defa 100644
--- a/core/DataAccess/Model.php
+++ b/core/DataAccess/Model.php
@@ -205,8 +205,8 @@ class Model
$existingInvalidations = $this->getExistingInvalidations($idSites, $periodCondition, $nameCondition);
$hashesOfAllSegmentsToArchiveInCoreArchive = Rules::getSegmentsToProcess($idSites);
- $hashesOfAllSegmentsToArchiveInCoreArchive = array_map(function ($definition) use ($idSites) {
- return (new Segment($definition, $idSites, Date::factory('yesterday'), Date::factory('today')))->getHash();
+ $hashesOfAllSegmentsToArchiveInCoreArchive = array_map(function ($definition) {
+ return Segment::getSegmentHash($definition);
}, $hashesOfAllSegmentsToArchiveInCoreArchive);
$dummyArchives = [];