Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 16:34:04 +08:00
parent 9fbfc4641f
commit 6ea6e8c3ab
1 changed files with 1 additions and 0 deletions

View File

@ -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 = []