FIX: Allow finding non-lowercase tag groups (#12787)

This commit is contained in:
Jarek Radosz
2021-04-21 19:15:53 +02:00
committed by GitHub
parent 24715115f5
commit a172a6cd9c
2 changed files with 43 additions and 9 deletions

View File

@@ -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)