diff --git a/app/controllers/admin/feeds_controller.rb b/app/controllers/admin/feeds_controller.rb index b25405c..1887209 100644 --- a/app/controllers/admin/feeds_controller.rb +++ b/app/controllers/admin/feeds_controller.rb @@ -105,8 +105,8 @@ class Admin::FeedsController < OrbitAdminController def announcements @filter_fields = {} @filter_fields['feed.source'] = SiteFeed.all.pluck(:channel_title,:remote_site_url).collect do |a,b| - tp = (a.blank? || a[I18n.locale].blank?) ? b.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-') : a[I18n.locale] - tp + tp = a.blank? ? b.gsub(/http:\/\/|https:\/\//,'').gsub(/\./,'-') : a + tp end.uniq.map{|tp| {:title => tp,:id => tp}} @filter_fields['feed.module_name'] = SiteFeed.all.map{|s| s.channel_key}.uniq.map do |key| {:title => I18n.t("module_name.#{key}"),:id => key}