summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-10-30 21:32:22 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-10-30 21:32:22 +0100
commita37157083da30af1714b1fe0f70daf1348c994d1 (patch)
tree6b5048f06313677f66b7bcb440b11c070f2facd8 /extensions
parent159341cde7e94ad4f4062438da50f4fb275e9d98 (diff)
downloadbugzilla-a37157083da30af1714b1fe0f70daf1348c994d1.tar.gz
bugzilla-a37157083da30af1714b1fe0f70daf1348c994d1.tar.xz
Bug 932823 - Add BMO hook to choose Infrastructure & Operations as product when itrequest form is loaded
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm8
1 files changed, 8 insertions, 0 deletions
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 {