Skip to content

Commit d61a059

Browse files
committed
Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2 parents 9845152 + a6a821a commit d61a059

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ phpMyAdmin - ChangeLog
8181
- issue #19022 Fix case where tables from wrong database is loaded in navigation tree
8282
- issue #18593 Fix drop db line included in server export if exporting only data
8383
- issue #18049 Also check that curl_exec is enabled for the new version check
84+
- issue #18451 Fix when editing inline central column, Null is always preselected
8485

8586
5.2.1 (2023-02-07)
8687
- issue #17522 Fix case where the routes cache file is invalid

resources/templates/database/central_columns/edit_table_row.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575

7676
<td class="text-nowrap" name="col_isNull">
7777
<input name="field_null[{{ row_num }}]" id="field_{{ row_num }}_6" type="checkbox" value="YES" class="allow_null"
78-
{{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' ? ' checked' }}>
78+
{{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' and row['col_isNull'] != 0 ? ' checked' }}>
7979
</td>
8080

8181
<td class="text-nowrap" name="col_extra">
8282
<input name="col_extra[{{ row_num }}]" id="field_{{ row_num }}_7" type="checkbox" value="auto_increment"
83-
{{- row['col_extra'] is not empty and row['col_extra'] == 'auto_increment' }}>
83+
{{- row['col_extra'] is not empty and row['col_extra'] == 'auto_increment' ? ' checked' }}>
8484
</td>
8585
</tr>

resources/templates/database/central_columns/main.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
<td class="text-nowrap" name="col_isNull">
362362
<span>{{ row['col_isNull'] ? 'Yes'|trans : 'No'|trans }}</span>
363363
<input name="field_null[{{ row_num }}]" id="field_{{ row_num }}_6" type="checkbox" value="YES" class="allow_null"
364-
{{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' ? ' checked' }}>
364+
{{- row['col_isNull'] is not empty and row['col_isNull'] != 'NO' and row['col_isNull'] != 'NOT NULL' and row['col_isNull'] != 0 ? ' checked' }}>
365365
</td>
366366
<td class="text-nowrap" name="col_extra">
367367
<span>{{ row['col_extra'] }}</span>

0 commit comments

Comments
 (0)