[fusion-trac] #511: Error message when layer name starting with number in MapGuide

Fusion trac_fusion at osgeo.org
Tue Jan 10 00:32:12 EST 2012


#511: Error message when layer name starting with number in MapGuide
------------------------+---------------------------------------------------
   Reporter:  sparkliu  |       Owner:  madair
       Type:  defect    |      Status:  new   
   Priority:  P3        |   Milestone:        
  Component:  MapGuide  |     Version:        
   Severity:  Minor     |    Keywords:        
External_id:            |       State:  New   
    Browser:  All       |          Os:  All   
------------------------+---------------------------------------------------
 1. Create a layer with name "0"
 2. Add it to map
 3. Open Fusion with that map and try to select a feature on that layer.

 You'll find an error message "Unable to get value of the property
 'getNumElements': object is null or undefined"

 When Fusion try to store selection set in session, it uses layer name as
 property name, but PHP doesn't allow property name beginning with number.
 That's the reason.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/511>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list