#1288 closed defect (fixed)
SortableTable parseData 0 converted to empty string
Reported by: | Owned by: | Tom Trenka | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
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 (4)
comment:1 Changed 14 years ago by
Component: | General → Widgets |
---|---|
Milestone: | → 0.5 |
Owner: | changed from anonymous to Tom Trenka |
comment:2 Changed 14 years ago by
Milestone: | 0.5 → 0.4 |
---|
Note: See
TracTickets for help on using
tickets.
Changing milestone, this is a quick fix.