From 6d67d003731ed5005ea1e6e5b439bcc70d3ff0bb Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sun, 4 Aug 2002 15:21:21 +0000 Subject: [PATCH] bug #590481 --- ChangeLog | 2 ++ tbl_properties.inc.php3 | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9985fa1a1..e5483122f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ $Source$ * lang/afrikaans-*.inc.php3: Tidied up a bit. * Documentation.html, ANNOUNCE.txt: We now have 41 languages, don't we? * Documentation.html: Beautified XHTML code. + * tbl_properties.inc.php3: Tried to work around bug #590481 (By default + radio button for primary key). 2002-08-03 Marc Delisle * Documentation.html: remove unneeded GRANT diff --git a/tbl_properties.inc.php3 b/tbl_properties.inc.php3 index 1f0e43715..3e885bacb 100755 --- a/tbl_properties.inc.php3 +++ b/tbl_properties.inc.php3 @@ -228,6 +228,11 @@ for ($i = 0 ; $i < $num_fields; $i++) { } else { $checked_unique = ''; } + if (empty($checked_primary) + && empty($checked_index) + && empty($checked_unique)) { + $checked_none = ' checked="checked"'; + } if (PMA_MYSQL_INT_VERSION >= 32323 &&(isset($row) && isset($row['Comment']) && $row['Comment'] == 'FULLTEXT')) { $checked_fulltext = ' checked="checked"'; @@ -246,7 +251,7 @@ for ($i = 0 ; $i < $num_fields; $i++) { /> - + /> = 32323) {