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
path: root/core
diff options
context:
space:
mode:
authorPeter Zhang <peter@innocraft.com>2022-06-15 08:58:52 +0300
committerGitHub <noreply@github.com>2022-06-15 08:58:52 +0300
commit494533f8d46f2d33c73b03178458a0665b238762 (patch)
treea2037f96336dc2424704d3aefe41a104980c0920 /core
parentab5a384321903ffdc1be2addfca6364cb53bdb82 (diff)
[Graphic]reload table if the default date changes (#19349)
* reload table if the changes reload table if the changes * add reload flag add reload flag * Revert "add reload flag" This reverts commit f3ffe624bab3836dc54a32304dea7e2dc5ac5dfd. * add cache load on rowEvolution add cache load on rowEvolution * revert changes revert changes * Update plugins/CoreHome/DataTableRowAction/RowEvolution.php Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com> Co-authored-by: Ben Burgess <88810029+bx80@users.noreply.github.com>
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/Visualization.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php
index 77058e6416..fbf320756f 100644
--- a/core/Plugin/Visualization.php
+++ b/core/Plugin/Visualization.php
@@ -312,6 +312,7 @@ class Visualization extends ViewDataTable
protected function loadDataTableFromAPI()
{
+
if (!is_null($this->dataTable)) {
// data table is already there
// this happens when setDataTable has been used
@@ -468,7 +469,7 @@ class Visualization extends ViewDataTable
// initial metadata and update metadata if current is more recent
if (!empty($itemMetaData[DataTable::ARCHIVED_DATE_METADATA_NAME])
&& (
- empty($metadata[DataTable::ARCHIVED_DATE_METADATA_NAME])
+ empty($metadata[DataTable::ARCHIVED_DATE_METADATA_NAME])
|| strtotime($itemMetaData[DataTable::ARCHIVED_DATE_METADATA_NAME]) > strtotime($metadata[DataTable::ARCHIVED_DATE_METADATA_NAME])
)
) {