diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2012-07-10 04:14:03 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2012-07-10 04:14:03 +0200 |
commit | a7c773b9c0aabf6c473c944ec885ba4975e28b4c (patch) | |
tree | 404321f144761100636c0a9251d0caf3f9d549a6 /describecomponents.cgi | |
parent | 108565f882b5fea273687ca32767b7c4d3e28ee8 (diff) | |
download | bugzilla-a7c773b9c0aabf6c473c944ec885ba4975e28b4c.tar.gz bugzilla-a7c773b9c0aabf6c473c944ec885ba4975e28b4c.tar.xz |
Bug 771739 - Implement the component search facility from the bmo extension on the browse (describe components) page
r=glob
Diffstat (limited to 'describecomponents.cgi')
-rwxr-xr-x | describecomponents.cgi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/describecomponents.cgi b/describecomponents.cgi index ee1361284..ed1f2388c 100755 --- a/describecomponents.cgi +++ b/describecomponents.cgi @@ -41,7 +41,9 @@ print $cgi->header(); # This script does nothing but displaying mostly static data. Bugzilla->switch_to_shadow_db; -my $product_name = trim($cgi->param('product') || ''); +my $product_name = trim($cgi->param('product') || ''); +my $component_mark = trim($cgi->param('component') || ''); + my $product = new Bugzilla::Product({'name' => $product_name}); unless ($product && $user->can_access_product($product->name)) { @@ -82,7 +84,8 @@ unless ($product && $user->can_access_product($product->name)) { # End Data/Security Validation ###################################################################### -$vars->{'product'} = $product; +$vars->{'product'} = $product; +$vars->{'component_mark'} = $component_mark; $template->process("reports/components.html.tmpl", $vars) || ThrowTemplateError($template->error()); |