Explorar el Código

2007-04-18 Marek Habersack <[email protected]>

	* SiteMapDataSource.cs: query the site map for the current node
	when configured to use it as the start point. Fixes bug #81376,
	patch from Mike Morano <[email protected]>.


svn path=/trunk/mcs/; revision=75864
Marek Habersack hace 18 años
padre
commit
8440705fe9

+ 4 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,5 +1,9 @@
 2007-04-18  Marek Habersack  <[email protected]>
 
+	* SiteMapDataSource.cs: query the site map for the current node
+	when configured to use it as the start point. Fixes bug #81376,
+	patch from Mike Morano <[email protected]>.
+
 	* Calendar.cs: change year/month format to be culture aware. Fix
 	for bug #81390. Patch submitted by Atsushi Enomoto
 	<[email protected]>

+ 1 - 1
mcs/class/System.Web/System.Web.UI.WebControls/SiteMapDataSource.cs

@@ -185,7 +185,7 @@ namespace System.Web.UI.WebControls
 			} else if (StartFromCurrentNode) {
 				if (StartingNodeUrl.Length != 0)
 					throw new InvalidOperationException ("StartingNodeUrl can't be set if StartFromCurrentNode is set to true.");
-				starting_node = Provider.CurrentNode;
+				starting_node = SiteMap.CurrentNode;
 			} else if (StartingNodeUrl.Length != 0) {
 				string url = MapUrl (StartingNodeUrl);
 				SiteMapNode node = Provider.FindSiteMapNode (url);