[Rt-commit] r14650 - in rtfm/trunk: .

falcone at bestpractical.com falcone at bestpractical.com
Wed Jul 30 15:58:24 EDT 2008


Author: falcone
Date: Wed Jul 30 15:58:22 2008
New Revision: 14650

Modified:
   rtfm/trunk/   (props changed)
   rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeCreate
   rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeMessageBox

Log:
 r36363 at ketch:  falcone | 2008-07-29 15:44:07 -0400
 * wrap RTFM on Ticket Creation in a config option that defaults to off
   so it won't break on 3.4/3.6/3.8.0


Modified: rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeCreate
==============================================================================
--- rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeCreate	(original)
+++ rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeCreate	Wed Jul 30 15:58:22 2008
@@ -49,6 +49,8 @@
 <%INIT>
 
 return if $checks_failure; # we're already skipping Create
+return unless ( RT->can('Config') && RT->Config->can('Get') && RT->Config->Get('RTFM_TicketCreate'));
+
 
 my $article = RT::FM::Article->new($session{'CurrentUser'});
 foreach my $arg ( keys %$ARGSRef) {

Modified: rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeMessageBox
==============================================================================
--- rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeMessageBox	(original)
+++ rtfm/trunk/html/Callbacks/RTFM/Ticket/Create.html/BeforeMessageBox	Wed Jul 30 15:58:22 2008
@@ -45,5 +45,6 @@
 %# those contributions and any derivatives thereof.
 %# 
 %# END BPS TAGGED BLOCK }}}
-
+% if ( RT->can('Config') && RT->Config->can('Get') && RT->Config->Get('RTFM_TicketCreate')) {
 <& /RTFM/Elements/BeforeMessageBox, %ARGS &>
+% }


More information about the Rt-commit mailing list