forked from saurabh/personal-journal
Update personal_journals_controller.rb
This commit is contained in:
parent
c6a2a6418c
commit
b700749a2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue