forked from OpenNeo/impress
Oops, fix recent bug in species:acara
item search filter
Ah oops, I just typo'd this and didn't test it properly, womp womp!
This commit is contained in:
parent
413d2eed91
commit
48f613d9bc
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Item
|
|||
when 'species'
|
||||
begin
|
||||
species = Species.find_by_name!(value)
|
||||
color = Color.find_by_name!('blue', 'en')
|
||||
color = Color.find_by_name!('blue')
|
||||
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',
|
||||
|
|
Loading…
Reference in a new issue