From 17667d189d1ba100d2a8b6d1d02e4210c77048a8 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 09:42:40 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index afd82b1..d787ecb 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -20,11 +20,11 @@ class PersonalJournalsController < ApplicationController "paper_title" ] end - #if params.selectbox.nil? + if !params.selectbox.nil? # journal_papers = Mongoid::Sessions.default[:journal_papers].find() # journal_papers_count = journal_papers.count # journal_papers_temp = Mongoid::Sessions.default[:journal_papers].find().take(journal_papers_count) - #else + else journal_paper_list = [] journal_papers.each do |journal_paper| t = [] @@ -48,7 +48,7 @@ class PersonalJournalsController < ApplicationController end journal_paper_list << {"jps" => t} end - #end + end headers = [] choice_show = [] fields_to_show.each do |fs|