Merge pull request #18838 from MauricioFauth/fix/table-relation-column-empty-hash

Fix case where column hash is empty in table relation page
This commit is contained in:
Maurício Meneghini Fauth 2023-12-08 17:20:59 -03:00 committed by GitHub
commit 5bf6257129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -134,12 +134,12 @@ final class RelationController extends AbstractController
$column_hash_array = [];
$column_array[''] = '';
foreach ($columns as $column) {
$column_hash_array[$column['Field']] = md5($column['Field']);
if (strtoupper($storageEngine) !== 'INNODB' && empty($column['Key'])) {
continue;
}
$column_array[$column['Field']] = $column['Field'];
$column_hash_array[$column['Field']] = md5($column['Field']);
}
if ($GLOBALS['cfg']['NaturalOrder']) {

View File

@ -195,6 +195,11 @@ parameters:
count: 1
path: libraries/classes/Config.php
-
message: "#^Parameter \\#1 \\$new_error_level of function error_reporting expects int, int\\|null given\\.$#"
count: 1
path: libraries/classes/Config.php
-
message: "#^Parameter \\#1 \\$str of function rtrim expects string, mixed given\\.$#"
count: 1