diff options
author | bugreport%peshkin.net <> | 2005-04-05 08:02:16 +0200 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-04-05 08:02:16 +0200 |
commit | af00161996a15e545573c29ccac52185eeb9b9dd (patch) | |
tree | d74a127ecec96384fcae66c25e3836c346e7fc0f /Bugzilla | |
parent | 07c0db551d1c63a8616ef8c51f89d8c2ea704a62 (diff) | |
download | bugzilla-af00161996a15e545573c29ccac52185eeb9b9dd.tar.gz bugzilla-af00161996a15e545573c29ccac52185eeb9b9dd.tar.xz |
Bug 286461:Add products table to search if classification are needed
Patch by joel
r=gerv, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 1f8e53ea3..0283b7f76 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -139,6 +139,8 @@ sub init { push @supptables, "INNER JOIN classifications AS map_classifications " . "ON map_products.classification_id = map_classifications.id"; + push @supptables, "INNER JOIN products AS map_products " . + "ON bugs.product_id = map_products.id"; } if (lsearch($fieldsref, 'map_components.name') >= 0) { @@ -863,6 +865,8 @@ sub init { "^classification,(?!changed)" => sub { # Generate the restriction condition + push @supptables, "INNER JOIN products AS map_products " . + "ON bugs.product_id = map_products.id"; $f = $ff = "classifications.name"; $funcsbykey{",$t"}->(); $term = build_subselect("map_products.classification_id", |