summaryrefslogtreecommitdiffstats
path: root/extensions/ProdCompSearch/lib
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2014-09-10 07:05:37 +0200
committerDylan William Hardison <dylan@hardison.net>2014-09-10 07:06:06 +0200
commitbb4c6f7122d30a48d0d80dcfd7a99e1d0be0ff38 (patch)
treeaab9d1755cdd380f135eba51793eb6f7cd6992a4 /extensions/ProdCompSearch/lib
parentb11a51b6a515fbb6ee2335c9ddfdf27dba343eba (diff)
downloadbugzilla-bb4c6f7122d30a48d0d80dcfd7a99e1d0be0ff38.tar.gz
bugzilla-bb4c6f7122d30a48d0d80dcfd7a99e1d0be0ff38.tar.xz
Bug 1062944 - Product::Component autocomplete when filing new bug shows disabled components.
r=glob
Diffstat (limited to 'extensions/ProdCompSearch/lib')
-rw-r--r--extensions/ProdCompSearch/lib/WebService.pm1
1 files changed, 1 insertions, 0 deletions
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 => {} });