From 8b18dded067d40073efe5e874ee5f59fc6b3e02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Tue, 7 Mar 2023 20:54:07 +0800 Subject: [PATCH] fix error --- app/controllers/personal_journals_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index d28f4ff..0bf0edd 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -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