Merge pull request #4272 from BrokenEagle/fix-wiki-quick-search-check

Fix title parameter checking
This commit is contained in:
evazion
2020-01-27 00:52:26 -06:00
committed by GitHub

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