From 3b2b5abb6a146386e0d111224f35886250e31b11 Mon Sep 17 00:00:00 2001 From: BrokenEagle Date: Sun, 26 Jan 2020 07:15:41 +0000 Subject: [PATCH] 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. --- app/controllers/wiki_pages_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/wiki_pages_controller.rb b/app/controllers/wiki_pages_controller.rb index 57bb6eda1..318da3801 100644 --- a/app/controllers/wiki_pages_controller.rb +++ b/app/controllers/wiki_pages_controller.rb @@ -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