Merge pull request #18319 from kamil-tekiela/Fix-bug-preventing-disabling-Tracking-feature

Fix bug preventing disabling tracking feature
This commit is contained in:
Maurício Meneghini Fauth 2023-04-05 10:00:25 -03:00 committed by GitHub
commit b668a63dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1626,6 +1626,11 @@ class Relation
$createQueries = null;
$foundOne = false;
foreach ($tablesToFeatures as $table => $feature) {
if (($GLOBALS['cfg']['Server'][$feature] ?? null) === false) {
// The feature is disabled by the user in config
continue;
}
// Check if the table already exists
// use the possible replaced name first and fallback on the table name
// if no replacement exists