From 3a148454c15c0fd185aaef640dabb4be17a69e70 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 7 Jun 2011 15:00:18 +0200 Subject: [PATCH] Respect defaults and comments checkbox after post (bug #3311791) --- adminer/create.inc.php | 17 ++++++++++++++--- adminer/include/editing.inc.php | 14 ++++---------- adminer/include/functions.inc.php | 5 +++-- 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/adminer/create.inc.php b/adminer/create.inc.php index acef23f7..68ef8746 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -157,12 +157,23 @@ foreach ($engines as $engine) { "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?> - +

: "> - -' : ''); ?> + +' : ''); ?>

> diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index bb603b69..b0b1b5e2 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -206,16 +206,11 @@ function type_class($type) { * @param string TABLE or PROCEDURE * @param int number of fields allowed by Suhosin * @param array returned by referencable_primary() -* @return bool column comments used +* @param bool display comments column +* @return null */ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array(), $comments = false) { global $inout; - foreach ($fields as $field) { - if ($field["comment"] != "") { - $comments = true; - break; - } - } ?>   @@ -226,7 +221,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei NULL AI - +