]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 450193: Cloning a bug may fail if a custom date/time field exists - Patch by...
authorlpsolit%gmail.com <>
Tue, 12 Aug 2008 06:59:56 +0000 (06:59 +0000)
committerlpsolit%gmail.com <>
Tue, 12 Aug 2008 06:59:56 +0000 (06:59 +0000)
template/en/default/bug/create/create.html.tmpl

index 24b6ec959dcb7bb9a8c9203c9215631676944cc0..209e58c15a68549bc4b726e6a99d48d65a904e2e 100644 (file)
@@ -435,7 +435,7 @@ function handleWantsAttachment(wants_attachment) {
 
   [% FOREACH field = Bugzilla.active_custom_fields %]
     [% NEXT UNLESS field.enter_bug %]
-    [% SET value = ${field.name} IF ${field.name}.defined %]
+    [% SET value = ${field.name}.defined ? ${field.name} : "" %]
     <tr>
       [% PROCESS bug/field.html.tmpl editable=1 value_span=3 %]
     </tr>