Update personal_journals_controller.rb

This commit is contained in:
chiu 2019-08-15 09:42:05 +08:00
parent c6a2a6418c
commit b700749a2f
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class PersonalJournalsController < ApplicationController
when "language"
journal_papers_show = journal_papers_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""),params[:keywords])}
else
journal_papers_show = jjournal_papers_temp.select {|value| search_all_words(value.send(params[:selectbox]).to_s,params[:keywords])}
journal_papers_show = journal_papers_temp.select {|value| search_all_words(value.send(params[:selectbox]).to_s,params[:keywords])}
end
if params[:page_no].nil?
page_to_show = 1