Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-15 09:27:52 +08:00
parent 53c228622f
commit 473ad7d534
1 changed files with 0 additions and 2 deletions

View File

@ -26,8 +26,6 @@ class PersonalJournalsController < ApplicationController
end end
if params[:selectbox] !=nil 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_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] case params[:selectbox]
when "paper_title","default" when "paper_title","default"
if page.custom_string_field == "table" if page.custom_string_field == "table"