From bb4c6f7122d30a48d0d80dcfd7a99e1d0be0ff38 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 10 Sep 2014 01:05:37 -0400 Subject: Bug 1062944 - Product::Component autocomplete when filing new bug shows disabled components. r=glob --- extensions/ProdCompSearch/lib/WebService.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'extensions/ProdCompSearch') diff --git a/extensions/ProdCompSearch/lib/WebService.pm b/extensions/ProdCompSearch/lib/WebService.pm index 3f8f0b75e..d668809f6 100644 --- a/extensions/ProdCompSearch/lib/WebService.pm +++ b/extensions/ProdCompSearch/lib/WebService.pm @@ -93,6 +93,7 @@ sub prod_comp_search { INNER JOIN components ON products.id = components.product_id WHERE (" . join(" AND ", @terms) . ") AND products.id IN (" . join(",", @$enterable_ids) . ") + AND components.isactive = 1 ORDER BY " . join(", ", @order) . " $limit", { Slice => {} }); -- cgit v1.2.3-24-g4f1b