From 913a2e7ff3c33d6705c43eb1c52d23fe91531069 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 19 Oct 2022 14:55:00 +0200 Subject: [PATCH] Fix import from central column list not setting the default value Signed-off-by: William Desportes --- js/src/functions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/functions.js b/js/src/functions.js index 064c34431c..5398903612 100644 --- a/js/src/functions.js +++ b/js/src/functions.js @@ -2971,11 +2971,11 @@ Functions.autoPopulate = function (inputId, offset) { var $input4 = $('#' + newInputId + '4'); if (colDefault !== '' && colDefault !== 'NULL' && colDefault !== 'CURRENT_TIMESTAMP' && colDefault !== 'CURRENT_TIMESTAMP()') { $input4.val('USER_DEFINED'); - $input4.next().next().show(); - $input4.next().next().val(centralColumnList[db + '_' + table][offset].col_default); + $input4.siblings('.default_value').show(); + $input4.siblings('.default_value').val(centralColumnList[db + '_' + table][offset].col_default); } else { $input4.val(centralColumnList[db + '_' + table][offset].col_default); - $input4.next().next().hide(); + $input4.siblings('.default_value').hide(); } $('#' + newInputId + '5').val(centralColumnList[db + '_' + table][offset].col_collation); var $input6 = $('#' + newInputId + '6');