Bug Tracker

Modify

Ticket #9348 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to ajax

Closing as dupe of param ticket.

comment:2 Changed 2 years ago by timmywil

Duplicate of #9360.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.