From f76ead6ea58448520b1948c96a8cfd3ebf9115c5 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 17 Sep 2013 20:51:29 +0800 Subject: [PATCH] Revert "Do not show announcement in json and rss if no title in I18n.locale (fix)" This reverts commit f72697ae76feb54bd7301c9c64c20c9e07ac3a80. --- .../panel/announcement/back_end/bulletins_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb index 764c8a4ca..cd8fb2f23 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb @@ -327,7 +327,6 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController def get_bulletins I18n.locale = params[:locale] || :zh_tw bulletins = params[:category_id] ? Bulletin.where(bulletin_category_id: params[:category_id]).order_by(:created_at, :desc) : Bulletin.all.order_by(:created_at, :desc) - bulletins.reject!{|b| b.title_translations[I18n.locale.to_s].blank?} @bulletins = Kaminari.paginate_array(bulletins).page(params[:page]).per(params[:per] || 10) respond_to do |format|