From d9459be130cbee58661804bd4591ad1bd4ca9944 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 16:50:19 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 97abfb8..3afe4f4 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -49,7 +49,6 @@ class PersonalJournalsController < ApplicationController journal_papers = journal_papers_show_last else end - journal_papers = JournalPaper.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count) journal_paper_list = [] journal_papers.each do |journal_paper| t = [] @@ -99,8 +98,7 @@ class PersonalJournalsController < ApplicationController "total_pages" => journal_papers.total_pages, "choice" => {"choice_value" => choice_value ,"choice_show" => choice_show}, "url" => "/"+params[:locale]+params[:url], - "all" => journal_papers_show_last, - "all_n" => JournalPaper.where(:is_hidden=>false).take(100).select {|value| value.paper_title.to_s.include? "2"} + "all" => journal_papers_show_last } end