Fix for bug #1600 - multiple selects were being serialized incorrectly.
This commit is contained in:
parent
82eccdfcd0
commit
6d71a10ed2
2 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ jQuery.fn.extend({
|
|||
var val = jQuery(this).val();
|
||||
return val == null ? null :
|
||||
val.constructor == Array ?
|
||||
jQuery.map( val, function(i, val){
|
||||
jQuery.map( val, function(val, i){
|
||||
return {name: elem.name, value: val};
|
||||
}) :
|
||||
{name: elem.name, value: val};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue