]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 354314: Missing "--do_not_change--" option for custom select fields when changing...
authorlpsolit%gmail.com <>
Thu, 28 Sep 2006 03:37:15 +0000 (03:37 +0000)
committerlpsolit%gmail.com <>
Thu, 28 Sep 2006 03:37:15 +0000 (03:37 +0000)
template/en/default/bug/field.html.tmpl
template/en/default/list/edit-multiple.html.tmpl

index 008674d60620c2b8ae94b2bf56f894fbfa8e493e..07617f19adfbbb33bce154b5282f71a375046e97 100644 (file)
@@ -25,6 +25,7 @@
   #   value: The value of the field for this bug.
   #   editable: Whether the field should be displayed as an editable
   #             <input> or as just the plain text of its value.
+  #   allow_dont_change: display the --do_not_change-- option for select fields.
   #   value_span: A colspan for the table cell containing
   #               the field value.
   #%]
         <input name="[% field.name FILTER html %]" value="[% value FILTER html %]" size="60">
     [% CASE constants.FIELD_TYPE_SINGLE_SELECT %]
         <select id="[% field.name FILTER html %]" name="[% field.name FILTER html %]">
+          [% IF allow_dont_change %]
+            <option value="[% dontchange FILTER html %]">
+              [% dontchange FILTER html %]
+            </option>
+          [% END %]
           [% FOREACH legal_value = field.legal_values %]
             <option value="[% legal_value FILTER html %]"
                 [%- " selected=\"selected\"" IF value == legal_value %]>
index 95198dbef86e207b47cc4a6ef73ec07f2129e277..cf57bb651d101c63cce4d314f7ae4bb6c2958f3a 100644 (file)
   [% USE Bugzilla %]
   [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %]
     <tr>
-      [% PROCESS bug/field.html.tmpl value=dontchange editable=1 %]
+      [% PROCESS bug/field.html.tmpl value = dontchange
+                                     editable = 1
+                                     allow_dont_change = 1 %]
     </tr>
   [% END %]