Commit 0fe1c9b6 authored by Tim Bishop's avatar Tim Bishop
Browse files

Fix group search to check path as well as name.

The API documentation says:

"You can search for groups by name or path with: /groups?search=Rails"

But you can't because the search query only checks the name, not
the path. This fixes that.
parent e1d1409c8f8f
......@@ -91,7 +91,7 @@ def system_hook_service
class << self
def search(query)
where("LOWER( LIKE :query", query: "%#{query.downcase}%")
where("LOWER( LIKE :query or LOWER(namespaces.path) LIKE :query", query: "%#{query.downcase}%")
def sort(method)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment