[mapguide-commits] r7840 - trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Sep 5 02:59:10 PDT 2013
Author: jng
Date: 2013-09-05 02:59:09 -0700 (Thu, 05 Sep 2013)
New Revision: 7840
Modified:
trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/CompileFullDependencyListCommand.cs
Log:
#2532: Weed out self-references in addition to empty resource ids when getting the direct dependents of a given resource. This fixes the infinite loop on self-referencing documents.
Modified: trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/CompileFullDependencyListCommand.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/CompileFullDependencyListCommand.cs 2013-09-05 09:51:05 UTC (rev 7839)
+++ trunk/Tools/Maestro/Maestro.Base/Commands/SiteExplorer/CompileFullDependencyListCommand.cs 2013-09-05 09:59:09 UTC (rev 7840)
@@ -59,8 +59,8 @@
doc.Load(s);
var matches = Utility.GetResourceIdPointers(doc);
- //Need to weed out any empty results.
- return matches.Select(x => x.Value).Where(x => !string.IsNullOrEmpty(x));
+ //Need to weed out any empty results and self-references
+ return matches.Select(x => x.Value).Where(x => !string.IsNullOrEmpty(x) && x != resId);
}
}
More information about the mapguide-commits
mailing list