Ticket #1288 (closed defect: fixed)
SortableTable parseData 0 converted to empty string
| Reported by: | hairiemx@… | Owned by: | ttrenka |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 0.3 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
This part cause the problem. If JSON data contains numeric value 0, instead of displaying 0, it will display empty string.
0 is equivalent to false. So, it will go to the else statement.
if(val){
o[field]=new type(val);
}else{
o[field]=new type(); // let it use the default.
}
Change History
Note: See
TracTickets for help on using
tickets.