diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index b0269b6..f27e685 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -25,9 +25,9 @@ class PersonalJournalsController < ApplicationController ] end if params[:selectbox] !=nil - journal_papers = JournalPaper.where(:is_hidden=>false) - 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] } + 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"