Fix #12534: Remove option from after_field select after a column is dropped
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
parent
e803caed71
commit
2a2d6d8bd6
@ -21,6 +21,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue #12502 Remove unused paramenter when connecting to MySQLi
|
||||
- issue #12303 Fix number formatting with different settings of precision in PHP
|
||||
- issue #12405 Use single quotes in PHP code
|
||||
- issue #12534 Option for the dropped column is not removed from 'after_field' select, after the column is dropped
|
||||
|
||||
4.6.4 (2016-08-16)
|
||||
- issue [security] Weaknesses with cookie encryption, see PMASA-2016-29
|
||||
|
||||
@ -233,8 +233,16 @@ AJAX.registerOnload('tbl_structure.js', function () {
|
||||
}
|
||||
$after_field_item.remove();
|
||||
$curr_row.hide("medium").remove();
|
||||
//by default select the last option to add new column (in case last column is dropped)
|
||||
|
||||
// Remove the dropped column from select menu for 'after field'
|
||||
$("select[name=after_field]").find(
|
||||
'[value="' + curr_column_name.trim() + '"]'
|
||||
).remove();
|
||||
|
||||
// by default select the (new) last option to add new column
|
||||
// (in case last column is dropped)
|
||||
$("select[name=after_field] option:last").attr("selected","selected");
|
||||
|
||||
//refresh table stats
|
||||
if (data.tableStat) {
|
||||
$('#tablestatistics').html(data.tableStat);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user