diff --git a/js/tbl_change.js b/js/tbl_change.js index 896700bb6..8fc7eca33 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -387,7 +387,7 @@ $(document).ready(function() { if ($this_element.is('.textfield')) { // do not remove the 'value' attribute for ENUM columns if ($this_element.closest('tr').find('span.column_type').html() != 'enum') { - $this_element.attr('value', ''); + $this_element.attr('value', $this_element.closest('tr').find('span.default_value').html()); } $this_element .unbind('change') diff --git a/tbl_change.php b/tbl_change.php index 1b6a2b69d..22584db43 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -694,6 +694,9 @@ foreach ($rows as $row_id => $vrow) { // HTML attribute echo '