Fix title parameter checking

It was fixed on the quick search form with 217f5e6 but wasn't
fixed on the parameter checking in the controller.
This commit is contained in:
BrokenEagle
2020-01-26 07:15:41 +00:00
parent 1a3ce17bf0
commit 3b2b5abb6a

View File

@@ -77,8 +77,8 @@ class WikiPagesController < ApplicationController
private
def item_matches_params(wiki_page)
if params[:search][:title]
wiki_page.title == WikiPage.normalize_title(params[:search][:title])
if params[:search][:title_normalize]
wiki_page.title == WikiPage.normalize_title(params[:search][:title_normalize])
else
true
end