[Rt-commit] rt branch 5.0/pass-attachment-to-modifycontent-callback created. rt-5.0.2-193-g829cfa893d

BPS Git Server git at git.bestpractical.com
Fri Apr 29 21:14:57 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/pass-attachment-to-modifycontent-callback has been created
        at  829cfa893dfb8dd424893f03871eb35bf4198c12 (commit)

- Log -----------------------------------------------------------------
commit 829cfa893dfb8dd424893f03871eb35bf4198c12
Author: Brad Embree <brad at bestpractical.com>
Date:   Fri Apr 29 14:12:10 2022 -0700

    Pass Attachment to the ModifyContent callback
    
    This could be used to simplify the RT-Extension-TrimReply created for Symas for determining the content type of the attachment.
    
    See ticket 246614.

diff --git a/share/html/Elements/ShowTransactionAttachments b/share/html/Elements/ShowTransactionAttachments
index 13a789ca85..db4d0fb746 100644
--- a/share/html/Elements/ShowTransactionAttachments
+++ b/share/html/Elements/ShowTransactionAttachments
@@ -216,6 +216,7 @@ my $render_attachment = sub {
                 ARGSRef          => \%ARGS,
                 Object           => $Object,
                 Transaction      => $Transaction,
+                Attachment       => $message,
                 Content          => \$content,
                 SkipQuoteFolding => \$skip_quote_folding,
             );

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list