From 03908e402d3366165280c6a21cf09db9e52a9ff7 Mon Sep 17 00:00:00 2001 From: JiangRu Date: Tue, 23 Dec 2014 15:11:13 +0800 Subject: [PATCH] fix languages for title --- app/controllers/admin/announcements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/announcements_controller.rb b/app/controllers/admin/announcements_controller.rb index 5eaab41..208542e 100644 --- a/app/controllers/admin/announcements_controller.rb +++ b/app/controllers/admin/announcements_controller.rb @@ -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"))