From c3a12a33f1df0d4785884ce227a11d5ccdad89df Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 10:13:13 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- 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 32b22b1..6d9700d 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -76,7 +76,7 @@ class PersonalJournalsController < ApplicationController journal_papers1 = Mongoid::Sessions.default[:journal_papers].find() journal_papers_count = journal_papers1.count journal_papers_temp = journal_papers1.take(journal_papers_count) - journal_papers_show = journal_papers_temp.select {|value| value["paper_title"].include? "1"} + journal_papers_show = journal_papers_temp.select {|value| value["paper_title"][OrbitHelper.params[:locale]].include? "1"} { "journal_papers" => journal_paper_list, "headers" => headers,