We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since formParams() returns {id: ""} from a form with a field this breaks the formParams() and isNew() integration.
From Justin on: http://forum.javascriptmvc.com/topic/isnew-on-model-treats-blank-ids-as-if-an-id-exists-and-sends-save-calls-to-update
"Those two are made for each other. We can probably change it to ignore an empty string too. "
The text was updated successfully, but these errors were encountered:
It does ignore empty strings when using
$(form).form_params(true)
This converts strings that look like numbers and booleans and empty strings will be ignored. Maybe we should default it to true?
Sorry, something went wrong.
Addressing issue #86. Empty string as model id should be ignored.
fe6ffd3
I also updated the isNew check in $.Model. An empty string as a model id can't be used anyway.
No branches or pull requests
Since formParams() returns {id: ""} from a form with a field
this breaks the formParams() and isNew() integration.
From Justin on: http://forum.javascriptmvc.com/topic/isnew-on-model-treats-blank-ids-as-if-an-id-exists-and-sends-save-calls-to-update
"Those two are made for each other. We can probably change it to ignore an empty string too. "
The text was updated successfully, but these errors were encountered: