mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow finding non-lowercase tag groups (#12787)
This commit is contained in:
@@ -68,7 +68,7 @@ class TagGroupsController < ApplicationController
|
||||
end
|
||||
|
||||
if params[:names].present?
|
||||
matches = matches.where(name: params[:names].map(&:downcase))
|
||||
matches = matches.where('lower(NAME) in (?)', params[:names].map(&:downcase))
|
||||
end
|
||||
|
||||
matches = matches.order('name').limit(params[:limit] || 5)
|
||||
|
||||
Reference in New Issue
Block a user