From: jakubvrana Date: Thu, 20 Mar 2008 16:17:37 +0000 (+0000) Subject: Don't hide/show added/dropped columns (bug 1920167) X-Git-Tag: v3.0.0~1133 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=f2813b574111891ed6a09323198faa62df112b79;p=adminer.git Don't hide/show added/dropped columns (bug 1920167) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@381 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/editing.inc.php b/editing.inc.php index 29d618f0..97aee9d1 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -64,7 +64,7 @@ function process_input($name, $field) { function edit_type($key, $field, $collations) { global $types, $unsigned, $inout; -?> + ?> " size="3" /> @@ -82,7 +82,7 @@ function process_type($field, $collate = "COLLATE") { function edit_fields($fields, $collations, $type = "TABLE") { global $inout; -?> + ?> @@ -100,10 +100,11 @@ function edit_fields($fields, $collations, $type = "TABLE") { $column_comments = false; foreach ($fields as $i => $field) { $i++; + $display = ($_POST["add"][$i-1] || (isset($field["field"]) && !$_POST["drop_col"][$i])); ?> - +> -" maxlength="64" />" /> +" maxlength="64" />" /> checked="checked" /> @@ -121,7 +122,7 @@ function edit_fields($fields, $collations, $type = "TABLE") { } function type_change($count) { -?> + ?>