Skip to main content

Bug Tracker

Side navigation

#9348 closed bug (duplicate)

Opened May 19, 2011 01:54PM UTC

Closed May 20, 2011 02:37PM UTC

Last modified May 20, 2011 02:37PM UTC

Problem when sending empty arrays in the parameters of an ajax call

Reported by: cassiommc@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed May 20, 2011 02:37PM UTC by timmywil comment:1

component: unfiledajax
priority: undecidedlow
resolution: → duplicate
status: newclosed

Closing as dupe of param ticket.

Changed May 20, 2011 02:37PM UTC by timmywil comment:2

Duplicate of #9360.