[Rt-commit] rt branch, 4.2/article-link-config, created. rt-4.2.12-158-gdeb8019
Shawn Moore
shawn at bestpractical.com
Fri Jul 8 15:05:01 EDT 2016
The branch, 4.2/article-link-config has been created
at deb8019a0d83b37499c9094a860538dcfadc3685 (commit)
- Log -----------------------------------------------------------------
commit deb8019a0d83b37499c9094a860538dcfadc3685
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Fri Jul 8 18:57:56 2016 +0000
Add $LinkArticlesOnInclude config
diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 069655e..6a711d4 100644
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1670,6 +1670,15 @@ you will have no access to Articles.
Set($HideArticleSearchOnReplyCreate, 0);
+=item C<$LinkArticlesOnInclude>
+
+Set this to 0 to suppress the default behavior of automatically linking
+to Articles when they are included in a message.
+
+=cut
+
+Set($LinkArticlesOnInclude, 1);
+
=back
diff --git a/share/html/Articles/Elements/BeforeMessageBox b/share/html/Articles/Elements/BeforeMessageBox
index dc428a3..a484f78 100644
--- a/share/html/Articles/Elements/BeforeMessageBox
+++ b/share/html/Articles/Elements/BeforeMessageBox
@@ -45,7 +45,7 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-% if ( $ARGS{id} && $ARGS{id} ne 'new' ) {
+% if ( $ARGS{id} && $ARGS{id} ne 'new' && RT->Config->Get('LinkArticlesOnInclude') ) {
<input type="hidden" name="<%$ARGS{'id'}%>-RefersTo" value="<% join(' ',grep {$_} sort keys %uri) %>" />
% }
-----------------------------------------------------------------------
More information about the rt-commit
mailing list