fix again
This commit is contained in:
parent
03a5840fc9
commit
d66e98c176
|
@ -30,7 +30,7 @@ namespace :announcement_link_widget do
|
||||||
end
|
end
|
||||||
|
|
||||||
if common_tags_frontend.size > 0
|
if common_tags_frontend.size > 0
|
||||||
Bulletin.all.each do |ann|
|
Bulletin.all.can_display.is_approved.order_by(:created_at=>'desc').each do |ann|
|
||||||
intersection = ann.tags & an_tags
|
intersection = ann.tags & an_tags
|
||||||
if intersection.size > 0
|
if intersection.size > 0
|
||||||
intersection.each do |t|
|
intersection.each do |t|
|
||||||
|
@ -42,7 +42,7 @@ namespace :announcement_link_widget do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
WebLink.all.each do |wl|
|
WebLink.all.can_display.order_by(:created_at=>'desc').each do |wl|
|
||||||
intersection = wl.tags & l_tags
|
intersection = wl.tags & l_tags
|
||||||
# debugger
|
# debugger
|
||||||
if intersection.size > 0
|
if intersection.size > 0
|
||||||
|
|
Loading…
Reference in New Issue