diff --git a/ChangeLog b/ChangeLog index ee3685553d..e41ba2c0b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -71,6 +71,7 @@ phpMyAdmin - ChangeLog - issue #19022 Fix case where tables from wrong database is loaded in navigation tree - issue #18593 Fix drop db line included in server export if exporting only data - issue #18049 Also check that curl_exec is enabled for the new version check +- issue #18451 Fix when editing inline central column, Null is always preselected 5.2.1 (2023-02-07) - issue #17522 Fix case where the routes cache file is invalid diff --git a/templates/database/central_columns/edit_table_row.twig b/templates/database/central_columns/edit_table_row.twig index ff541a154a..a5baa48a0a 100644 --- a/templates/database/central_columns/edit_table_row.twig +++ b/templates/database/central_columns/edit_table_row.twig @@ -75,11 +75,11 @@ + {{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' and row['col_isNull'] != 0 ? ' checked' }}> + {{- row['col_extra'] is not empty and row['col_extra'] == 'auto_increment' ? ' checked' }}> diff --git a/templates/database/central_columns/main.twig b/templates/database/central_columns/main.twig index 02ed188567..9e5d2a89cf 100644 --- a/templates/database/central_columns/main.twig +++ b/templates/database/central_columns/main.twig @@ -355,7 +355,7 @@ {{ row['col_isNull'] ? 'Yes' | trans : 'No' | trans }} + {{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' and row['col_isNull'] != 0 ? ' checked' }}> {{ row['col_extra'] }}