From 473ad7d534e5ce5d51e1cea667015ad3ed68858e Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 15 Aug 2019 09:27:52 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index f27e685..65e4a42 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -26,8 +26,6 @@ class PersonalJournalsController < ApplicationController end if params[:selectbox] !=nil journal_papers_temp = JournalPaper.where(:is_hidden=>false).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] } - #journal_papers_count = journal_papers.count - #journal_papers_temp = journal_papers.take(journal_papers_count).sort_by{ |tp| [-tp[:year].to_i,-tp[:publication_date].to_i] } case params[:selectbox] when "paper_title","default" if page.custom_string_field == "table"