]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 364923: Flag options should be disabled for users that cannot request or grant...
authorlpsolit%gmail.com <>
Wed, 27 Dec 2006 02:48:24 +0000 (02:48 +0000)
committerlpsolit%gmail.com <>
Wed, 27 Dec 2006 02:48:24 +0000 (02:48 +0000)
template/en/default/bug/create/create.html.tmpl

index b11b0ff18c2c6b0b01d35f0ce8792be18892ff6c..3d6d3e314131e254094de536bb9dfd900c342acb 100644 (file)
@@ -131,7 +131,8 @@ function set_assign_to() {
         // Now enable flags available for the selected component.
         for (var i = 0; i < flags[index].length; i++) {
             flagField = document.getElementById("flag_type-" + flags[index][i]);
-            if (flagField) {
+            // Do not enable flags the user cannot set nor request.
+            if (flagField && flagField.options.length > 1) {
                 flagField.disabled = false;
                 // Re-enabling the requestee field depends on the status
                 // of the flag.