From 2458ce8d325c692254fbd5d45f610e9c37f685b2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 27 Dec 2006 02:48:24 +0000 Subject: Bug 364923: Flag options should be disabled for users that cannot request or grant/deny them instead of showing a blank drop-down - Patch by Frédéric Buclin r/a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/bug/create/create.html.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'template/en/default') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index b11b0ff18..3d6d3e314 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -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. -- cgit v1.2.3-24-g4f1b