Merge pull request #875 from mateusz/gridfield-relation-search

FIX Pass only the search string where testing, not the entire form.
This commit is contained in:
Ingo Schommer 2012-10-16 06:41:33 -07:00
commit 2cc80abe65

View File

@ -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 };