From e6791c1e7f91800d69bed1f6e116f499cf33f68f Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 16:51:51 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 3afe4f4..b3ce70c 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -49,6 +49,8 @@ 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 = []