From 7f7de14b517a953e83c97ec5a268613442826b8c Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 29 Oct 2013 18:42:46 -0400 Subject: Bug 931232 - form:itrequest has wrong product/component for 'Any other issue' option --- .../default/bug/create/create-itrequest.html.tmpl | 36 +++++++++++++--------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl') diff --git a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl index 5bc0cf576..57c11a08a 100644 --- a/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-itrequest.html.tmpl @@ -27,14 +27,16 @@ [% FOREACH comp IN product.components %] compdesc['[% comp.name FILTER js %]'] = '[% comp.description FILTER js %]'; [% END %] - compdesc['invalid'] = ''; + compdesc['Server Operations'] = 'System administration for the mozilla.org servers. ' + + 'Requests for Server Ops that don\'t fit in any of the ' + + 'other Server Ops components can go here.'; var serviceNowText = 'Use Service Now to:
' + 'Request an LDAP/E-mail/etc. account
' + 'Desktop/Laptop/Printer/Phone/Tablet/License problem/order/request'; function setcompdesc(theRadio) { - if (theRadio.id == 'componentsd') { + if (theRadio.id == 'component_service_desk') { [%# helpdesk issue/request %] document.getElementById('main_form').style.display = 'none'; document.getElementById('service_now_form').style.display = ''; @@ -44,8 +46,14 @@ document.getElementById('service_now_form').style.display = 'none'; var theValue = theRadio.value; var compDescText = compdesc[theValue]; - if (theRadio.id == 'componentio') { + // If 'Server Operations', product must be changed to 'mozilla.org' + // otherwise set to 'Infrastructure & Operations' + if (theRadio.id == 'component_server_ops') { compDescText = compDescText + '

' + serviceNowText; + document.getElementById('product').value = 'mozilla.org'; + } + else { + document.getElementById('product').value = 'Infrastructure & Operations'; } document.getElementById('compdescription').innerHTML = compDescText; } @@ -85,7 +93,7 @@
- + @@ -118,16 +126,16 @@ Request Type: - -
- -
- -
- -
- -
+ +
+ +
+ +
+ +
+ +
Mailing list requests should be filed here instead. -- cgit v1.2.3-24-g4f1b