[Mapguide-trac] [mapguide-trac] #2041: Error in GetCommonParent

MapGuide Open Source trac_mapguide at osgeo.org
Mon Jun 25 05:29:00 PDT 2012


#2041: Error in GetCommonParent
-----------------------+----------------------------------------------------
   Reporter:  hm       |       Owner:                         
       Type:  defect   |      Status:  new                    
   Priority:  low      |   Milestone:  Maestro-4.0-maintenance
  Component:  General  |     Version:                         
   Severity:  trivial  |    Keywords:                         
External_id:           |  
-----------------------+----------------------------------------------------
 In the file Maestro.Base\UI\SiteExplorer.cs in the method GetCommonParent
 there is an error:

        internal static string GetCommonParent(RepositoryItem[] data)
         {
             if (data.Length > 0)
             {
                 if (data.Length == 1)
                 {
                     if (data[0].IsFolder)
                         return data[0].ToString();

 The ToString will return the name of the object type
 "Maestro.Base.UI.RepositoryItem" and not the ResourceId "Library://../.."

 should be:
                         return data[0].ResourceId;

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2041>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list