diff --git a/tbl_change.php b/tbl_change.php index 438d1d908d..7ea6995423 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -376,7 +376,9 @@ foreach ($rows as $row_id => $vrow) { $vrow) { // ignore this column to avoid changing it if ($field['is_char']) { $fieldsize = $extracted_fieldspec['spec_in_brackets']; + if($fieldsize > $cfg['MaxSizeForInputField']) { + /** + * This case happens for CHAR or VARCHAR field which has + * lager field size than Maximum size for input field. + */ + $cfg['CharEditing'] = 'textarea'; + } } else { /** * This case happens for example for INT or DATE columns; @@ -963,6 +972,7 @@ foreach ($rows as $row_id => $vrow) { || strpos($data, "\n") !== false) ) { echo "\n"; + $cfg['CharEditing'] = $default_char_editing; ?>