diff options
author | lpsolit%gmail.com <> | 2006-12-27 02:48:24 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-27 02:48:24 +0000 |
commit | 2458ce8d325c692254fbd5d45f610e9c37f685b2 (patch) | |
tree | 851de027c3ea59a644d896b97f056b10b58c51cb /template | |
parent | f349f2bd347c7836d622a9afe51663fda50c21d5 (diff) | |
download | bugs-2458ce8d325c692254fbd5d45f610e9c37f685b2.tar bugs-2458ce8d325c692254fbd5d45f610e9c37f685b2.tar.gz bugs-2458ce8d325c692254fbd5d45f610e9c37f685b2.tar.bz2 bugs-2458ce8d325c692254fbd5d45f610e9c37f685b2.tar.xz bugs-2458ce8d325c692254fbd5d45f610e9c37f685b2.zip |
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 <LpSolit@gmail.com> r/a=justdave
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/create/create.html.tmpl | 3 |
1 files changed, 2 insertions, 1 deletions
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. |