[Artists] Fix autocomplete

I removed the _like parameter in 40dd24f387 but missed this usage
This commit is contained in:
Earlopain 2023-06-05 17:04:47 +02:00
parent 84ab5e82dc
commit 33bab9e9f0
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

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