forked from e621ng/e621ng
[Artists] Fix autocomplete
I removed the _like parameter in 40dd24f387
but missed this usage
This commit is contained in:
parent
84ab5e82dc
commit
33bab9e9f0
@ -431,7 +431,7 @@ Autocomplete.artist_source = function(term, resp) {
|
||||
return $.ajax({
|
||||
url: "/artists.json",
|
||||
data: {
|
||||
"search[name_like]": term.trim().replace(/\s+/g, "_") + "*",
|
||||
"search[name]": term.trim().replace(/\s+/g, "_") + "*",
|
||||
"search[is_active]": true,
|
||||
"search[order]": "post_count",
|
||||
"limit": 10,
|
||||
|
@ -190,7 +190,6 @@ class ArtistTest < ActiveSupport::TestCase
|
||||
create(:artist, name: "artist")
|
||||
|
||||
assert_not_nil(Artist.search(name: "artist").first)
|
||||
assert_not_nil(Artist.search(name_like: "artist").first)
|
||||
assert_not_nil(Artist.search(any_name_matches: "artist").first)
|
||||
assert_not_nil(Artist.search(any_name_matches: "*art*").first)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user