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:
authorStefan Giehl <stefan@matomo.org>2020-07-24 12:07:46 +0300
committerGitHub <noreply@github.com>2020-07-24 12:07:46 +0300
commit6b5f8138180716d5088d764f0b41d5787159b28a (patch)
tree358c2c2535fb83fdebf3815556797b38cc42e8b1 /core
parent817c48d66f456de83afbbe60c3996dabf99fb605 (diff)
Rename config setting for maximum rows in custom dimension reports (#16229)
* Rename config setting for maximum rows in custom dimension reports * automatically set new config values if old ones were set * submodule update * update expected UI files
Diffstat (limited to 'core')
-rw-r--r--core/Updates/4.0.0-b2.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Updates/4.0.0-b2.php b/core/Updates/4.0.0-b2.php
index 4a6309ea08..d71e55a7a4 100644
--- a/core/Updates/4.0.0-b2.php
+++ b/core/Updates/4.0.0-b2.php
@@ -9,6 +9,7 @@
namespace Piwik\Updates;
+use Piwik\Config;
use Piwik\Plugin\Manager;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Plugins\UserCountry\LocationProvider;
@@ -56,6 +57,16 @@ class Updates_4_0_0_b2 extends PiwikUpdates
$migrations[] = $this->migration->plugin->activate('CustomDimensions');
}
+ $configTableLimit = Config::getInstance()->getFromLocalConfig('General')['datatable_archiving_maximum_rows_custom_variables'] ?? null;
+ $configSubTableLimit = Config::getInstance()->getFromLocalConfig('General')['datatable_archiving_maximum_rows_subtable_custom_variables'] ?? null;
+
+ if ($configTableLimit) {
+ $migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_custom_dimensions', $configTableLimit);
+ }
+ if ($configSubTableLimit) {
+ $migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_subtable_custom_dimensions', $configSubTableLimit);
+ }
+
return $migrations;
}