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:
authorZoltan Flamis <zoltan@innocraft.com>2021-06-09 09:15:56 +0300
committerGitHub <noreply@github.com>2021-06-09 09:15:56 +0300
commit63190d13da715767c845e5b3ab01d108956c6977 (patch)
tree4cfe1f14827c5efb8b486a6ae96fd1c9614184eb /plugins/Insights
parent36e83dc533562fca2128ce2460e4c51d96b46a70 (diff)
fix regression (#17656)
* fix regression * add test Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Diffstat (limited to 'plugins/Insights')
-rw-r--r--plugins/Insights/DataTable/Filter/Insight.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Insights/DataTable/Filter/Insight.php b/plugins/Insights/DataTable/Filter/Insight.php
index 8e13d5ecae..51e96193cf 100644
--- a/plugins/Insights/DataTable/Filter/Insight.php
+++ b/plugins/Insights/DataTable/Filter/Insight.php
@@ -95,8 +95,19 @@ class Insight extends DataTable\Filter\CalculateEvolutionFilter
$this->addRow($table, $row, $growthPercentage, $newValue, $oldValue, $difference, $isDisappeared, $isNew, $isMover);
}
+ protected function getPastRowFromCurrent($row)
+ {
+ if ($row->isSummaryRow()) {
+ return $this->pastDataTable->getSummaryRow();
+ }
+ return $this->pastDataTable->getRowFromLabel($row->getColumn('label'));
+ }
+
private function getRowFromTable(DataTable $table, DataTable\Row $row)
{
+ if ($row->isSummaryRow()) {
+ return $table->getSummaryRow();
+ }
return $table->getRowFromLabel($row->getColumn('label'));
}
@@ -116,4 +127,4 @@ class Insight extends DataTable\Filter\CalculateEvolutionFilter
$table->addRowFromArray(array(DataTable\Row::COLUMNS => $columns));
}
-} \ No newline at end of file
+}