Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1288 closed defect (fixed)

SortableTable parseData 0 converted to empty string

Reported by: [email protected] Owned by: Tom Trenka
Priority: high Milestone:
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


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.


o[field]=new type(val);


o[field]=new type(); let it use the default.


Change History (4)

comment:1 Changed 15 years ago by dylan

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

comment:2 Changed 15 years ago by Tom Trenka

Milestone: 0.50.4

Changing milestone, this is a quick fix.

comment:3 Changed 15 years ago by Tom Trenka

Resolution: fixed
Status: newclosed

(In [5407]) Fixes #1288.

comment:4 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.