[Rt-commit] rt branch, 4.4/message-box-callback-ref, created. rt-4.4.2-18-g63cdf3d

Jim Brandt jbrandt at bestpractical.com
Tue Aug 1 10:22:20 EDT 2017


The branch, 4.4/message-box-callback-ref has been created
        at  63cdf3dca7a932ce5b7492f131d1c690569d6dee (commit)

- Log -----------------------------------------------------------------
commit 63cdf3dca7a932ce5b7492f131d1c690569d6dee
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue Aug 1 10:15:47 2017 -0400

    Pass message as a reference
    
    07f739afc added $message to the Default callback. Pass it as
    a reference to be consistent with the parameter name MessageRef.

diff --git a/share/html/Elements/MessageBox b/share/html/Elements/MessageBox
index 74b7037..64caaf9 100644
--- a/share/html/Elements/MessageBox
+++ b/share/html/Elements/MessageBox
@@ -47,7 +47,7 @@
 %# END BPS TAGGED BLOCK }}}
 <textarea autocomplete="off" class="messagebox <% $Type eq 'text/html' ? 'richtext' : '' %>" <% $width_attr %>="<% $Width %>" rows="<% $Height %>" <% $wrap_type |n %> name="<% $Name %>" id="<% $Name %>" placeholder="<% $Placeholder %>">
 % $m->comp('/Articles/Elements/IncludeArticle', %ARGS) if $IncludeArticle;
-% $m->callback( %ARGS, SignatureRef => \$signature, DefaultRef => \$Default, MessageRef => $message );
+% $m->callback( %ARGS, SignatureRef => \$signature, DefaultRef => \$Default, MessageRef => \$message );
 % if (RT->Config->Get("SignatureAboveQuote", $session{'CurrentUser'})) {
 <% $Default || '' %><% $signature %><% $message %></textarea>
 % }

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


More information about the rt-commit mailing list