fix error
This commit is contained in:
parent
34056ca18f
commit
a5bc3285c7
|
@ -10,7 +10,7 @@ module Admin::ApplicationFormsHelper
|
||||||
|
|
||||||
pages.each do |page|
|
pages.each do |page|
|
||||||
if page.categories.count ==1
|
if page.categories.count ==1
|
||||||
if page.categories.include?(application_form.category.id.to_s) rescue false
|
if (page.categories.include?(application_form.category.id.to_s) rescue false)
|
||||||
ann_page = page
|
ann_page = page
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -19,7 +19,7 @@ module Admin::ApplicationFormsHelper
|
||||||
|
|
||||||
if ann_page.nil?
|
if ann_page.nil?
|
||||||
pages.each do |page|
|
pages.each do |page|
|
||||||
if page.categories.include?(application_form.category.id.to_s) rescue false
|
if (page.categories.include?(application_form.category.id.to_s) rescue false)
|
||||||
ann_page = page
|
ann_page = page
|
||||||
end
|
end
|
||||||
break if !ann_page.nil?
|
break if !ann_page.nil?
|
||||||
|
|
Loading…
Reference in New Issue