[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-161-gd8ca52c

sartak at bestpractical.com sartak at bestpractical.com
Wed Feb 17 20:06:50 EST 2010


The branch, 3.8-trunk has been updated
       via  d8ca52cc5cf11a1b4ceda3f05c0ca6f258ded27f (commit)
      from  4658be309b346f9f9af2123cf70a92fc3865d71d (commit)

Summary of changes:
 .../Ticket/Elements/ShowTransactionAttachments     |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit d8ca52cc5cf11a1b4ceda3f05c0ca6f258ded27f
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Feb 17 20:06:27 2010 -0500

    Add callback for adding links for attachment downloads

diff --git a/share/html/Ticket/Elements/ShowTransactionAttachments b/share/html/Ticket/Elements/ShowTransactionAttachments
index 242725a..a8cdfc1 100644
--- a/share/html/Ticket/Elements/ShowTransactionAttachments
+++ b/share/html/Ticket/Elements/ShowTransactionAttachments
@@ -67,7 +67,10 @@ foreach my $message ( grep $_->__Value('Parent') == $Parent, @$Attachments ) {
 % if ( $DownloadableHeaders && !$message->Filename && $message->ContentType =~ /text/  ) {
  / <a href="<% $AttachPath %>/WithHeaders/<% $message->Id %>"><% loc('with headers') %></a>
 % }
-<br /> 
+
+% $m->callback(CallbackName => 'AfterDownloadLinks', ARGSRef => \%ARGS, Ticket => $Ticket, Transaction => $Transaction, Attachment => $message);
+
+<br />
 <span class="downloadcontenttype"><% $message->ContentType %> <% $size_to_str->( $size ) %></span>
 </div>
 %   }

-----------------------------------------------------------------------


More information about the Rt-commit mailing list