Author: krasnov
Date: 2008-01-24 07:40:41 -0500 (Thu, 24 Jan 2008)
New Revision: 93787

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataSourceCacheManager.cs
Log:
* DataSourceCacheManager.cs: fixed GetKeyFromParameters, in case more than one 
datasource using the same object with the same select method


Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2008-01-24 12:28:57 UTC (rev 93786)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2008-01-24 12:40:41 UTC (rev 93787)
@@ -1,3 +1,8 @@
+2008-01-24  Vladimir Krasnov  <[EMAIL PROTECTED]>
+
+       * DataSourceCacheManager.cs: fixed GetKeyFromParameters, incase more
+       than one datasource using the same object with the same select method
+
 2008-01-23 Igor Zelmanovich <[EMAIL PROTECTED]>
 
        * ValidationSummary.cs:

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataSourceCacheManager.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataSourceCacheManager.cs  
    2008-01-24 12:28:57 UTC (rev 93786)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/DataSourceCacheManager.cs  
    2008-01-24 12:40:41 UTC (rev 93787)
@@ -116,6 +116,9 @@
                {
                        StringBuilder sb = new StringBuilder (methodName);
 
+                       if (owner != null)
+                               sb.Append (owner.ID);
+
                        for (int i = 0; i < parameters.Count; i++) {
                                sb.Append (parameters [i].Name);
                                sb.Append (parameters [i].GetValue (context, 
owner));

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to