[Rt-commit] rt branch, 4.0/messagebox-include-article-flag, created. rt-4.0.6-126-g01a45a6
Jim Brandt
jbrandt at bestpractical.com
Thu May 31 17:26:40 EDT 2012
The branch, 4.0/messagebox-include-article-flag has been created
at 01a45a65dedcabfe31935c1f28e520019ed53988 (commit)
- Log -----------------------------------------------------------------
commit 01a45a65dedcabfe31935c1f28e520019ed53988
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu May 31 16:38:13 2012 -0400
Add IncludeArticle flag to MessageBox
Flag defaults to on but allows callers to disable article
insertion in the messagebox.
diff --git a/share/html/Elements/MessageBox b/share/html/Elements/MessageBox
index 61995e0..69227bf 100755
--- a/share/html/Elements/MessageBox
+++ b/share/html/Elements/MessageBox
@@ -46,7 +46,7 @@
%#
%# END BPS TAGGED BLOCK }}}
<textarea autocomplete="off" class="messagebox" <% $width_attr %>="<% $Width %>" rows="<% $Height %>" <% $wrap_type |n %> name="<% $Name %>" id="<% $Name %>">\
-% $m->comp('/Articles/Elements/IncludeArticle', %ARGS);
+% $m->comp('/Articles/Elements/IncludeArticle', %ARGS) if $IncludeArticle;
% $m->callback( %ARGS, SignatureRef => \$signature );
<% $Default || '' %><% $message %><% $signature %></textarea>
% $m->callback( %ARGS, CallbackName => 'AfterTextArea' );
@@ -89,4 +89,5 @@ $Width => RT->Config->Get('MessageBoxWidth', $session{'CurrentUser'}
$Height => RT->Config->Get('MessageBoxHeight', $session{'CurrentUser'} ) || 15
$Wrap => RT->Config->Get('MessageBoxWrap', $session{'CurrentUser'} ) || 'SOFT'
$IncludeSignature => RT->Config->Get('MessageBoxIncludeSignature');
+$IncludeArticle => 1;
</%ARGS>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list