From b1663fd9b82f419dc1240ee6f0283b9e2f95072a Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 2 Mar 2020 22:41:51 +0800 Subject: [PATCH] fix error for the site that don't have e_papers' index page --- app/controllers/admin/e_paper_criterias_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/e_paper_criterias_controller.rb b/app/controllers/admin/e_paper_criterias_controller.rb index 4b19b47..6b3fd4e 100644 --- a/app/controllers/admin/e_paper_criterias_controller.rb +++ b/app/controllers/admin/e_paper_criterias_controller.rb @@ -16,7 +16,7 @@ def initialize # .with_tags(filters("tags")) @criterias = search_data(@criterias,[:title]).page(params[:page]).per(10) - @url = "/" + I18n.locale.to_s + "/" +Page.where(:module => "e_paper").first.url + "?method=papers" + #@url = "/" + I18n.locale.to_s + "/" +Page.where(:module => "e_paper").first.url + "?method=papers" render :partial => "index" if request.xhr? end