Opened 10 years ago
Closed 10 years ago
#629 closed defect (fixed)
Doubles with value 0.0 are shown as empty strings
Reported by: | morkl | Owned by: | madair |
---|---|---|---|
Priority: | P2 | Milestone: | Future |
Component: | MapGuide | Version: | SVN |
Severity: | Major | Keywords: | |
Cc: | Browser: | All | |
External ID: | Operating System: | All | |
state: | New |
Description
When selecting a feature with attributes of type double and value 0.0, the attributes values are displayed as empty strings.
In GetPropertyValueFromFeatReader in layers/MapGuide/php/Utilities.php, the value is set to "" if equal to null:
if ( null == $val ) { $val = ""; }
However, the following is true/truthy in PHP:
( null == 0.0 )
The check should probably be done with the identity/type equality operator:
if ( null === $val ) { $val = ""; }
Attachments (1)
Change History (2)
by , 10 years ago
comment:1 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch