This commit is contained in:
BoHung Chiu 2022-11-04 10:22:41 +08:00
parent 0ff710332f
commit 00351ff2af
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ class Admin::FeedsController < OrbitAdminController
@skip_count = (@page_no-1)*@max_content_count @skip_count = (@page_no-1)*@max_content_count
@module_name = params[:filters][:module_name].to_a rescue [] @module_name = params[:filters][:module_name].to_a rescue []
@module_name = SiteFeed.all.map{|s| s.channel_key}.uniq if @module_name == [] @module_name = SiteFeed.all.map{|s| s.channel_key}.uniq if @module_name == []
@all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(created_at: 1).to_a rescue [] @all_feed_annc = SiteFeedAnnc.where(:channel_key.in => @module_name).order(id: 1).to_a rescue []
@source = params[:filters][:source] rescue [] @source = params[:filters][:source] rescue []
@keywords = params[:keywords] rescue nil @keywords = params[:keywords] rescue nil
if request.xhr? if request.xhr?