diff options
-rw-r--r-- | mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog | 5 | ||||
-rwxr-xr-x | mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog index e09d0f62123..258c6038e55 100644 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/ChangeLog @@ -1,3 +1,8 @@ +2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * HtmlSelect.cs: don't add items without data. Patch by Alon Gazit + <along@mainsoft.com>. Fixes bug #51377. + 2003-11-24 Gonzalo Paniagua Javier <gonzalo@ximian.com> * HtmlInputRadioButton.cs: initialize event indexer. Patch by Alon Gazit diff --git a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs index eb0bd52bc50..29c9313e63c 100755 --- a/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs +++ b/mcs/class/System.Web/System.Web.UI.HtmlControls/HtmlSelect.cs @@ -88,7 +88,7 @@ namespace System.Web.UI.HtmlControls{ Items.Capacity = rdsCollection.Count;
bool valid = false;
- if (text.Length >= 0 && value.Length >= 0)
+ if (text.Length > 0 && value.Length > 0) valid = true;
foreach (object current in resolvedDataSource) {
|