]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 353528 - "<select> fields with just one value shouldn't appear editable" [p=reed...
authorreed%reedloden.com <>
Wed, 27 Dec 2006 02:53:15 +0000 (02:53 +0000)
committerreed%reedloden.com <>
Wed, 27 Dec 2006 02:53:15 +0000 (02:53 +0000)
template/en/default/bug/edit.html.tmpl

index 749cb86782d29a4d7b6d26fc17fddd0e3bbd11fb..fb9e902f3153a1af5e25773a3b85eb70c950e69a 100644 (file)
 
 [% BLOCK select %]
   <td>
-    [% IF bug.check_can_change_field(selname, 0, 1) %]
+    [% IF bug.check_can_change_field(selname, 0, 1) AND bug.choices.${selname}.size > 1 %]
       <select id="[% selname %]" name="[% selname %]">
         [% FOREACH x = bug.choices.${selname} %]
           <option value="[% x FILTER html %]"