Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1288 closed defect (fixed)

SortableTable parseData 0 converted to empty string

Reported by: hairiemx@… 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 13 years ago by dylan

Component: GeneralWidgets
Milestone: 0.5
Owner: changed from anonymous to Tom Trenka

comment:2 Changed 13 years ago by Tom Trenka

Milestone: 0.50.4

Changing milestone, this is a quick fix.

comment:3 Changed 13 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(In [5407]) Fixes #1288.

comment:4 Changed 12 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.