diff --git a/ChangeLog b/ChangeLog index 17e0e2a0c1..3a88612bbc 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,10 @@ $Source$ * lang/english: improvements, thanks to Ryan Schmidt - ryandesign * lang/*: removed unused message and modified strCheckOverhead where still untranslated + * tbl_properties.inc.php: bug #1163595 (problem #5): after an error + modifying TIMESTAMP options, the table structure editing form + was shown without the new options. Still having an issue with + a default value for a TIMESTAMP not generated in the ALTER TABLE. 2005-03-29 Marc Delisle * libraries/common.lib.php: XSS vulnerability on convcharset diff --git a/tbl_properties.inc.php b/tbl_properties.inc.php index 6f74f07828..4bd288ed9c 100644 --- a/tbl_properties.inc.php +++ b/tbl_properties.inc.php @@ -175,7 +175,9 @@ for ($i = 0 ; $i < $num_fields; $i++) { $submit_length = (isset($field_length) && isset($field_length[$i]) ? $field_length[$i] : FALSE); $submit_attribute = (isset($field_attribute) && isset($field_attribute[$i]) ? $field_attribute[$i] : FALSE); - + + $submit_default_current_timestamp = (isset($field_default_current_timestamp) && isset($field_default_current_timestamp[$i]) ? TRUE : FALSE); + if (isset($field_comments) && isset($field_comments[$i])) { $comments_map[$row['Field']] = $field_comments[$i]; } @@ -257,11 +259,12 @@ for ($i = 0 ; $i < $num_fields; $i++) { // rtrim the type, for cases like "float unsigned" $type = rtrim($type); + $type_upper = strtoupper($type); $cnt_column_types = count($cfg['ColumnTypes']); for ($j = 0; $j < $cnt_column_types; $j++) { $content_cells[$i][$ci] .= '