From 1403aa191299dbfdc6d75cac993ea3cc555bc9ac Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 May 2005 04:05:46 +0000 Subject: [PATCH] r127: - Created edit links on the attachments manager - Removed debugging info from showreport.php --- showreport.php | 3 +-- templates/default/showreport_attachment.tpl | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/showreport.php b/showreport.php index 4516529..3969b5a 100644 --- a/showreport.php +++ b/showreport.php @@ -76,8 +76,6 @@ foreach ($words AS $word) $hilight[] = $temp = trim(preg_replace('#[^0-9a-zA-Z_ ]#', '', $word)); } } -print_r($words); -print_r($hilight); // ------------------------------------------------------------------- // attachments @@ -97,6 +95,7 @@ if ($show['getattachments'] OR $show['putattachments']) ); while ($attachment = $db->fetch_array($attachments_fetch)) { + $show['editattach'] = ((can_perform('caneditattach') OR $attachment['userid'] == $bugsys->userinfo['userid']) ? true : false); $attachment['date'] = datelike('standard', $attachment['dateline']); $attachment['user'] = construct_user_display($attachment, false); eval('$attachments .= "' . $template->fetch('showreport_attachment') . '";'); diff --git a/templates/default/showreport_attachment.tpl b/templates/default/showreport_attachment.tpl index 77473d0..4d93fa7 100644 --- a/templates/default/showreport_attachment.tpl +++ b/templates/default/showreport_attachment.tpl @@ -1,6 +1,9 @@ style="text-decoration: line-through">$attachment[filename] posted by $attachment[user] ($attachment[date]) -
$attachment[description]
+
+ [Edit] + $attachment[description] +
\ No newline at end of file -- 2.22.5