]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 357478: Custom fields should appear as text when they are not editable
authorolav%bkor.dhs.org <>
Sun, 22 Oct 2006 05:21:33 +0000 (05:21 +0000)
committerolav%bkor.dhs.org <>
Sun, 22 Oct 2006 05:21:33 +0000 (05:21 +0000)
Patch by Olav Vitters <olav@bkor.dhs.org> r=LpSolit a=justdave

template/en/default/bug/edit.html.tmpl

index 802f0bc61853f6fdd8636a77fa17d3d4c13f982a..53fe5fa0be0ec7b28e90f242861a18892f6563ef 100644 (file)
             [% FOREACH field = fields %]
               <tr>
                 [% PROCESS bug/field.html.tmpl value=bug.${field.name}
-                                               editable = 1
+                                               editable = bug.check_can_change_field(field.name, 0, 1) || !user.id
                                                value_span = 2 %]
               </tr>
             [% END %]