fix error

This commit is contained in:
邱博亞 2023-03-07 20:54:07 +08:00
parent 50ec5bbd62
commit 8b18dded06
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class PersonalJournalsController < ApplicationController
journal_paper_query = journal_paper_query.where(:journal_type_ids.in => page_journal_type.to_a )
end
journal_papers = journal_paper_query.page(OrbitHelper.params[:page_no]).per(page_data_count)
if params[:layout_type]
if params[:layout_type].start_with?('index_by_author')
return index_by_author(journal_papers)
end
page = OrbitHelper.page