Ticket #2040 (closed defect: duplicate)

Opened 12 months ago

Last modified 12 months ago

Error in GetCommonParent

Reported by: hm Owned by:
Priority: low Milestone:
Component: General Version: 2.1.0
Severity: trivial Keywords:
Cc: External ID:

Description

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?;

Change History

Changed 12 months ago by hm

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.