From: Jakub Vrana Date: Tue, 11 Mar 2025 19:16:49 +0000 (+0100) Subject: Fix focusing first field X-Git-Tag: v5.0.5~60 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=43d86287c4588773f76e9f4f64964b28875f37fc;p=adminer.git Fix focusing first field --- 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";