Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 16:46:09 +08:00
parent 6ea6e8c3ab
commit 175f05168c
1 changed files with 0 additions and 1 deletions

View File

@ -47,7 +47,6 @@ class PersonalJournalsController < ApplicationController
end
journal_papers_show_last = journal_papers_show[(page_to_show-1)*OrbitHelper.page_data_count...page_to_show*OrbitHelper.page_data_count]
journal_papers = journal_papers_show_last
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)