bugfix: zone-not-found raises error again

This commit is contained in:
Emi Matchu 2013-01-25 11:15:54 -06:00
parent c5fbf74a7d
commit 4e0ce6c20b

View file

@ -118,8 +118,8 @@ class Item
}, },
:zone => lambda { |label| :zone => lambda { |label|
zone_set = Zone.with_plain_label(label) zone_set = Zone.with_plain_label(label)
unless zone_set if zone_set.empty?
Item::Search.error 'not_found.zone', :zone_name => name Item::Search.error 'not_found.zone', :zone_name => label
end end
zone_set.map(&:id) zone_set.map(&:id)
}, },