now without title wont show

This commit is contained in:
Harry Bomrah 2016-04-07 16:35:36 +08:00
parent 63e3e78dba
commit 0d14ffa23e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class AnnouncementFeedsController < ApplicationController
if !bf.nil?
tags = bf.tag_ids
if !tags.empty?
announcements = Bulletin.can_display.is_approved.filter_by_tags(tags)
announcements = Bulletin.where(:title.ne => "").can_display.is_approved.filter_by_tags(tags)
else
announcements = []
end