From 26616f872c63ec05be6c04652445da94442ab139 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Mon, 11 Mar 2019 13:01:47 -0400 Subject: [PATCH] use like (vs ilike) for service query --- app/models/service/aggregation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/service/aggregation.rb b/app/models/service/aggregation.rb index ebe24084906..9c777701287 100644 --- a/app/models/service/aggregation.rb +++ b/app/models/service/aggregation.rb @@ -149,7 +149,7 @@ def aggregate_hardware_arel(virtual_column_name, aggregation_sql, options = {}) def aggregation_where_clause(arel, subtree_services) arel.grouping( subtree_services[:id].eq(arel[:id]) - .or(subtree_services[:ancestry].matches(ancestry_ilike)) + .or(subtree_services[:ancestry].matches(ancestry_ilike, nil, true)) ).or(subtree_services[:ancestry].eq(service_id_cast)) end