From a37157083da30af1714b1fe0f70daf1348c994d1 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Wed, 30 Oct 2013 16:32:22 -0400 Subject: Bug 932823 - Add BMO hook to choose Infrastructure & Operations as product when itrequest form is loaded --- extensions/BMO/Extension.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'extensions') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 5f236dea4..c32da77c5 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -995,6 +995,14 @@ sub enter_bug_start { } elsif (my $format = forced_format($cgi->param('product'))) { $cgi->param('format', $format); } + + # If product eq 'mozilla.org' and format eq 'itrequest', then + # switch to the new 'Infrastructure & Operations' product. + if ($cgi->param('product') && $cgi->param('product') eq 'mozilla.org' + && $cgi->param('format') && $cgi->param('format') eq 'itrequest') + { + $cgi->param('product', 'Infrastructure & Operations'); + } } sub forced_format { -- cgit v1.2.3-24-g4f1b