From 4b6bfcd1a4129f3ceea18e82311f5434f4eda60f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 23 May 2001 18:21:45 +0000 Subject: [PATCH] Bug #424237 --- ChangeLog | 3 ++ tbl_change.php3 | 75 ++++++++++++++++++++++++++++++++----------------- 2 files changed, 53 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae2b1df8f..258796de8 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-05-22 Marc Delisle + * Bug #424237: cannot set an enum field to Null + 2001-05-21 Marc Delisle * add a message $strTextAreaLength to tell users when a textarea contents is too large to be editable ( > 32K) diff --git a/tbl_change.php3 b/tbl_change.php3 index a63205e0d..ad1a617b4 100755 --- a/tbl_change.php3 +++ b/tbl_change.php3 @@ -94,31 +94,56 @@ for($i=0;$i 20) { - echo ""; - } - else { - echo "\n"; - for($j=0; $j".htmlspecialchars(substr($set[$j], 1, -1))."\n"; - } - echo ""; - } + // show dropdown or radio depend on length + if (strlen($row_table_def["Type"]) > 20) { + echo ""; + } + else { + echo "\n"; + + $seenchecked = 0; + for($j=0; $j".htmlspecialchars(substr($set[$j], 1, -1))."\n"; + } + + if ($row_table_def["Null"] == "YES") { + echo "[$strNull]"; + } + echo ""; + } } elseif(strstr($row_table_def["Type"], "set"))