From 425d780e7f77d8cc38191331cbcc84d7af5c871a Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 14 Jul 2015 14:52:03 +0800 Subject: Bug 1173442 - Implement admin UI changes to allow selecting default product security group instead of editing code --- extensions/GuidedBugEntry/web/js/guided.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'extensions/GuidedBugEntry/web/js/guided.js') diff --git a/extensions/GuidedBugEntry/web/js/guided.js b/extensions/GuidedBugEntry/web/js/guided.js index 0ff438782..339a6fc65 100644 --- a/extensions/GuidedBugEntry/web/js/guided.js +++ b/extensions/GuidedBugEntry/web/js/guided.js @@ -189,13 +189,6 @@ var product = { return; } - // use the correct security group - if (products[productName] && products[productName].secgroup) { - Dom.get('groups').value = products[productName].secgroup; - } else { - Dom.get('groups').value = products['_default'].secgroup; - } - // show support message if (products[productName] && products[productName].support) { Dom.get("product_support_message").innerHTML = products[productName].support; @@ -824,9 +817,10 @@ var bugForm = { } bugForm.onVersionChange(elVersions.value); - // set default hw/os + // set default hw/os/group Dom.get('rep_platform').value = product.details.default_platform; Dom.get('op_sys').value = product.details.default_op_sys; + Dom.get('groups').value = product.details.default_security_group; }, onComponentChange: function(componentName) { -- cgit v1.2.3-24-g4f1b