[Rt-commit] rt branch, 4.4/quote-txn-on-ticket-forward, created. rt-4.4.3-68-g33efc6fac

Maureen Mirville maureen at bestpractical.com
Mon Nov 19 16:44:47 EST 2018


The branch, 4.4/quote-txn-on-ticket-forward has been created
        at  33efc6fac7199b24321d1f4a4853e1d76dc8dca2 (commit)

- Log -----------------------------------------------------------------
commit 33efc6fac7199b24321d1f4a4853e1d76dc8dca2
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Mon Nov 19 15:09:56 2018 -0500

    Add quoted transaction on ticket Forward
    
    Replying or Commenting on a ticket quotes the content of the
    selected transaction. Passed ARGS to allow this same behavior when
    Forwarding a ticket transaction.

diff --git a/share/html/Ticket/Forward.html b/share/html/Ticket/Forward.html
index a2467369b..02916cb84 100644
--- a/share/html/Ticket/Forward.html
+++ b/share/html/Ticket/Forward.html
@@ -87,9 +87,13 @@
 <td><&|/l&>Content</&>:</td>
 <td>
 % if (exists $ARGS{Content}) {
-<& /Elements/MessageBox, Default => $ARGS{Content}, IncludeSignature => 0, SuppressAttachmentWarning => 1 &>
+% # preserve QuoteTransaction so we can use it to set up sane references/in/reply to
+% my $temp = $ARGS{'QuoteTransaction'};
+% delete $ARGS{'QuoteTransaction'};
+<& /Elements/MessageBox, Default => $ARGS{Content}, IncludeSignature => 0, SuppressAttachmentWarning => 1, %ARGS &>
+% $ARGS{'QuoteTransaction'} = $temp;
 % } else {
-<& /Elements/MessageBox, SuppressAttachmentWarning => 1 &>
+<& /Elements/MessageBox, SuppressAttachmentWarning => 1, %ARGS &>
 %}
 </td>
 </tr>

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


More information about the rt-commit mailing list