diff --git a/app/controllers/admin/news_controller.rb b/app/controllers/admin/news_controller.rb index 5d2361c..1d40bb2 100644 --- a/app/controllers/admin/news_controller.rb +++ b/app/controllers/admin/news_controller.rb @@ -16,7 +16,7 @@ class Admin::NewsController < OrbitAdminController @filter_fields = filter_fields(@categories, @tags) @table_fields = [:status, :category, :title, :start_date, :end_date, :image, "news.unit", :view_count] - @news_bulletin = NewsBulletin.where(:is_preview.in=>[false,nil]) + @news_bulletin = NewsBulletin.where(:title.ne => "",:is_preview.in=>[false,nil]) .order_by(sort) .with_categories(filters("category")) .with_tags(filters("tag")) diff --git a/app/views/admin/news/_index.html.erb b/app/views/admin/news/_index.html.erb index d891079..e2c39fb 100644 --- a/app/views/admin/news/_index.html.erb +++ b/app/views/admin/news/_index.html.erb @@ -18,30 +18,14 @@