Opened 11 years ago
Closed 11 years ago
#2333 closed defect (fixed)
Selection type is missing from the Maestro5 API enum OSGeo.MapGuide.MaestroAPI.ResourceType
Reported by: | hm | Owned by: | jng |
---|---|---|---|
Priority: | low | Milestone: | Maestro-5.0-maintenance |
Component: | Maestro | Version: | |
Severity: | minor | Keywords: | |
Cc: | External ID: |
Description
Hi, I notised that the Selection type is missing from the Maestro5 API enum OSGeo.MapGuide.MaestroAPI.ResourceTypes?
It wasn't present in Maestro4 API either, but with Maestro5 it fails when running this command:
con.ResourceService.CopyResource("Session:abcxyz//MyMap.Selection", "Session:abcxyz//MyMapCopy.Selection", true);
Internally the API is converting the extension string "Selection" to an enum, but fails becasue it does not exist. Adding Selection to the enum in OSGeo.MapGuide.MaestroAPI\Enums.cs fixes the problem.
I guess the new API runs some code different than the old API since it now causes problems, and not before.
Best regards
Hans Milling...
Attachments (1)
Change History (2)
by , 11 years ago
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Diff file to fix the missing Selection enum