Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 16:04:57 +08:00
parent db2d0ea772
commit 3c8e66ddba
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class PersonalJournalsController < ApplicationController
page_to_show = params[:page_no].to_i page_to_show = params[:page_no].to_i
end 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_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
else else
end end
journal_paper_list = [] journal_paper_list = []