diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-11-25 14:45:43 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2003-11-25 14:45:43 +0300 |
commit | 464ba68686260c956a2abd0d26df3cac4ac1cca8 (patch) | |
tree | fbad878df14675e6701f4dcd97b099c9d25871ad /mcs/class/System.Web | |
parent | 4739b4b82b724b0cfff1ff7d2536e1d8697ea39c (diff) |
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.
svn path=/trunk/mcs/; revision=20424
Diffstat (limited to 'mcs/class/System.Web')
-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) {
|