From 6ea6e8c3ab04a285e6a7d6be16e1fc3f29bd6e1d Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 16:34:04 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index e518e2e..a010014 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -50,6 +50,7 @@ class PersonalJournalsController < ApplicationController journal_papers.total_pages = (journal_papers_temp.length / OrbitHelper.page_data_count.to_f).ceil 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 = []