From 5c24ecdc929d2897dfb6082314950629946959da Mon Sep 17 00:00:00 2001 From: Thilina Buddika Abeyrathna Date: Tue, 3 Apr 2012 07:42:46 -0400 Subject: [PATCH] Patch #3507001 Contest-4 for rfe #2046140 --- tbl_change.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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; ?>