Fix minor item search error message bug

Oops, I got the variable name wrong here! Before this change,
`species:foo` would crash. Now, it shows the error message correctly.
This commit is contained in:
Emi Matchu 2023-11-11 07:04:57 -08:00
parent d2de971a60
commit 3b59823fc4

View file

@ -65,7 +65,7 @@ class Item
pet_type = PetType.where(color_id: color.id, species_id: species.id).first!
rescue ActiveRecord::RecordNotFound
message = I18n.translate('items.search.errors.not_found.species',
species_name: species_name.capitalize)
species_name: value.capitalize)
raise Item::Search::Error, message
end
filters << (is_positive ?