Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-13 09:31:52 +08:00
parent 1bbca25a7e
commit 9ce82a25f0
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ 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)
@ -70,7 +70,7 @@ class PersonalJournalsController < ApplicationController
"extras" => {"widget-title" => t("module_name.journal_paper")},
"total_pages" => journal_papers.total_pages,
"choice" => {"choice_value" => choice_value ,"choice_show" => choice_show},
"url" => "/"+OrbitHelper.params[:locale]+OrbitHelper.params[:url],
"url" => "/"+params[:locale]+params[:url],
"all" => journal_papers_temp
}
end