mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
commit
2cc80abe65
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user