From 19ea23c177e62253b3a57a110b166566f76b6b6d Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 5 Oct 2020 22:11:17 +0800 Subject: [PATCH] Fix bug. --- app/controllers/announcements_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index d059e10..fdcb6d9 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -15,6 +15,7 @@ class AnnouncementsController < ApplicationController def index Bulletin.remove_expired_status sorted,total_pages = get_sorted_annc + sorted = [] if sorted.nil? anns = sorted.collect do |a| if a["source-site"].blank? statuses = a.statuses_with_classname.collect do |status|