forked from OpenNeo/impress
bugfix: zone-not-found raises error again
This commit is contained in:
parent
c5fbf74a7d
commit
4e0ce6c20b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue