fix error
This commit is contained in:
parent
142300523c
commit
28b9abfd24
|
@ -74,7 +74,6 @@ class BulletinFeed
|
||||||
if tmp_enable_annc_dept
|
if tmp_enable_annc_dept
|
||||||
annc_depts = annc_depts_translations[I18n.default_locale.to_s] rescue []
|
annc_depts = annc_depts_translations[I18n.default_locale.to_s] rescue []
|
||||||
end
|
end
|
||||||
if !bf.nil?
|
|
||||||
tags = bf.tag_ids
|
tags = bf.tag_ids
|
||||||
categories = bf.category_ids
|
categories = bf.category_ids
|
||||||
if !(categories.empty? && tags.empty?)
|
if !(categories.empty? && tags.empty?)
|
||||||
|
@ -109,9 +108,8 @@ class BulletinFeed
|
||||||
announcements = anns_before_filter.to_a
|
announcements = anns_before_filter.to_a
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
anns_before_filter = Bulletin.is_approved_and_show
|
anns_before_filter = Bulletin.can_display_and_sorted
|
||||||
announcements = []
|
announcements = anns_before_filter.to_a
|
||||||
end
|
|
||||||
end
|
end
|
||||||
all_anns = []
|
all_anns = []
|
||||||
tag_ids = []
|
tag_ids = []
|
||||||
|
|
Loading…
Reference in New Issue