Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateAction: 0 value of numeric field is hidden until page refresh #2003

Open
laptevn opened this issue Oct 20, 2016 · 1 comment
Open

updateAction: 0 value of numeric field is hidden until page refresh #2003

laptevn opened this issue Oct 20, 2016 · 1 comment

Comments

@laptevn
Copy link

laptevn commented Oct 20, 2016

Tried PUT and POST request for updateAction.
My server returns JSON with numeric field equal to 0 (that is not '0' string but 0 numeric).
JTable display this cell as empty after receiving server response (but that should display 0). If I restart the page the cell will contain 0 value.
If my server returns any other value (e.g. 1 or 2) the cell will display it correctly even without page refresh.
If my server returns string value of a number (i.e. '0' instead of 0) the cell will display it correctly.
listAction and createAction do not have this problem.

So there is something wrong with processing 0 number in updateAction.

@hikalkan
Copy link
Member

There is a bug fixed in latest version (v2.4.1: https://github.com/hikalkan/jtable/releases/tag/v2.4.1 - #1916). Is that related to your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants