From 43d86287c4588773f76e9f4f64964b28875f37fc Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 11 Mar 2025 20:16:49 +0100 Subject: [PATCH] Fix focusing first field --- adminer/include/functions.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index fbc086de..aa3dc034 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -1423,6 +1423,7 @@ function edit_form($table, $fields, $row, $update) {
" . lang('You have no privileges to update this table.') . "\n"; } else { @@ -1467,8 +1468,10 @@ function edit_form($table, $fields, $row, $update) { $value = ""; $function = "uuid"; } - if ($field["auto_increment"] || $function == "now" || $function == "uuid") { + if ($is_first && ($field["auto_increment"] || $function == "now" || $function == "uuid")) { $first++; + } else { + $is_first = false; } input($field, $value, $function); echo "\n";