]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fixes to small issues with show_bug.cgi templatisation.
authorgerv%gerv.net <>
Tue, 26 Mar 2002 07:03:55 +0000 (07:03 +0000)
committergerv%gerv.net <>
Tue, 26 Mar 2002 07:03:55 +0000 (07:03 +0000)
Bug 133276 - groups test is wrong. Patch by ddk, 2xr=gerv.
Bug 133333 - create new attachment link broken. Patch by ddk, 2xr=gerv.
Bug 109029 - show_bug should generate valid HTML. Patch by gerv, r=afranke, bbaetz.

template/default/show/show_bug.html.tmpl

index a91de24b974cb3f6138cdec270e083d23519848f..3e5950e997b8d3b01c3eb80bf25c302b2ea1e579 100644 (file)
       [% IF Param("usetargetmilestone") && bug.target_milestone %]
         <td align="right">
           <b>
-            <a href="[% bug.milestoneurl %]">Target Milestone</a>:
+            <a href="[% bug.milestoneurl filter uri %]">Target Milestone</a>:
           </b>
         </td>
         [% PROCESS select selname = "target_milestone" %]
   <tr>
     <td align="right">
       <b>
-      [% IF bug.url %]
-        <a href="[% bug.url FILTER url %]">URL:</a>
-      [% ELSE %]
-        URL:
-      [% END %]
+        [% IF bug.url %]
+          <a href="[% bug.bug_file_loc FILTER uri %]">URL:</a>
+        [% ELSE %]
+          URL:
+        [% END %]
+      </b>
     </td>
     <td colspan="7">
       <input name="bug_file_loc" value="[% bug.bug_file_loc %]" size="60">
 [%# *** Attachments *** %]
 
   [% INCLUDE attachment/list.atml 
-     attachments = bug.attachments %]
+     attachments = bug.attachments 
+     bugid = bug.bug_id %]
 
 [%# *** Dependencies Votes *** %]
 
             accesskey="c"></textarea>
   <br>
 
-  [% IF groups %]
+  [% IF groups.size > 0 %]
     <br>
     <b>Only users in the selected groups can view this bug:</b>
     <br>