Opened 10 years ago
Closed 10 years ago
#14071 closed bug (invalid)
AJAX: data zero leads to form data empty
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hey,
i'm not sure if it's really a bug you should fix but if i'm sending an xhr with just a zero (number) as data the actual data (request header) being send is empty. Using zero transformed to a string works fine.
see: http://jsfiddle.net/FSFtc/
Cheers,
Martin
Change History (4)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 Changed 10 years ago by
$.ajax({
url: '/', type: 'POST', data: 0+
})
$.ajax({
url: '/', type: 'POST', data: 0
})
comment:4 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Did you save your test case? I don't see any code at that link.