Modify ↓
Ticket #9348 (closed bug: duplicate)
Problem when sending empty arrays in the parameters of an ajax call
| Reported by: | cassiommc@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | ajax | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
There is something strange when sending an empty array in a Ajax call, like
$.post(“/whatever”, {foo: [1,2,3], bar: []}, function(data) {…});
Using jQuery 1.5.2 the “bar” parameter gets in the server (Rails) as an empty array, but using 1.6.1 it does not appear in the request parameters at all.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Closing as dupe of param ticket.