fix languages for title

This commit is contained in:
JiangRu 2014-12-23 15:11:13 +08:00
parent b8144754b3
commit 03908e402d
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Admin::AnnouncementsController < OrbitAdminController
@filter_fields = filter_fields(@categories, @tags)
@table_fields = [:status, :category, :title, :start_date, :end_date, :last_modified]
@bulletins = Bulletin.where(:is_preview.in=>[false,nil])
@bulletins = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil])
.order_by(sort)
.with_categories(filters("category"))
.with_tags(filters("tag"))