diff --git a/libraries/classes/Controllers/Table/ZoomSearchController.php b/libraries/classes/Controllers/Table/ZoomSearchController.php index 8d97300c33..0a7a8e7860 100644 --- a/libraries/classes/Controllers/Table/ZoomSearchController.php +++ b/libraries/classes/Controllers/Table/ZoomSearchController.php @@ -15,6 +15,7 @@ use PhpMyAdmin\Url; use PhpMyAdmin\Util; use PhpMyAdmin\Utils\Gis; +use function array_map; use function array_search; use function array_values; use function count; @@ -377,6 +378,10 @@ class ZoomSearchController extends AbstractController $column_names_hashes[$columnName] = md5($columnName); } + $columnDataTypes = array_map(static function (string $type): string { + return strtoupper((string) preg_replace('@\(.*@s', '', $type)); + }, $this->columnTypes); + $this->render('table/zoom_search/result_form', [ 'db' => $this->db, 'table' => $this->table, @@ -385,6 +390,7 @@ class ZoomSearchController extends AbstractController 'foreigners' => $this->foreigners, 'column_null_flags' => $this->columnNullFlags, 'column_types' => $this->columnTypes, + 'column_data_types' => $columnDataTypes, 'goto' => $goto, 'data' => $data, 'data_json' => json_encode($data), diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6a2ec29345..29a533b2ba 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -4485,16 +4485,6 @@ parameters: count: 1 path: libraries/classes/Image/ImageWrapper.php - - - message: "#^Method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:height\\(\\) should return int but returns int\\|false\\.$#" - count: 1 - path: libraries/classes/Image/ImageWrapper.php - - - - message: "#^Method PhpMyAdmin\\\\Image\\\\ImageWrapper\\:\\:width\\(\\) should return int but returns int\\|false\\.$#" - count: 1 - path: libraries/classes/Image/ImageWrapper.php - - message: "#^Method PhpMyAdmin\\\\Import\\:\\:analyzeTable\\(\\) has parameter \\$table with no value type specified in iterable type array\\.$#" count: 1 diff --git a/templates/table/zoom_search/index.twig b/templates/table/zoom_search/index.twig index 257e4c2690..e7903b12aa 100644 --- a/templates/table/zoom_search/index.twig +++ b/templates/table/zoom_search/index.twig @@ -18,10 +18,10 @@ -
+ {{ get_hidden_inputs(db, table) }} - +
{% trans 'Do a "query by example" (wildcard: "%") for two different columns' %}
diff --git a/templates/table/zoom_search/result_form.twig b/templates/table/zoom_search/result_form.twig index 936d941da9..724471328a 100644 --- a/templates/table/zoom_search/result_form.twig +++ b/templates/table/zoom_search/result_form.twig @@ -1,7 +1,7 @@ - + {{ get_hidden_inputs(db, table) }} - +
{% trans 'Browse/Edit the points' %}
@@ -19,8 +19,8 @@ {% endif %}
-