Permalink
Browse files

FIX Pass only the search string where testing, not the entire form.

  • Loading branch information...
1 parent 574c53d commit e84b0339d80198b0a7e3727491c056340528b863 @mateusz mateusz committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/GridField.js
View
@@ -302,7 +302,7 @@
},
type: "GET",
url: suggestionUrl,
- data: form.serialize()+'&'+escape(searchField.attr('name'))+'='+escape(searchField.val()),
+ data: escape(searchField.attr('name'))+'='+escape(searchField.val()),
success: function(data) {
response( $.map(JSON.parse(data), function( name, id ) {
return { label: name, value: name, id: id };

0 comments on commit e84b033

Please sign in to comment.