[Rt-commit] [rtir] 08/22: move a variable definition closer to first use

Jesse Vincent jesse at bestpractical.com
Sun Mar 29 02:50:58 EDT 2015


This is an automated email from the git hooks/post-receive script.

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit b096013398f047dff0c1d3e11f724864a17a2400
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sat Mar 28 20:15:11 2015 -0700

    move a variable definition closer to first use
---
 html/RTIR/Create.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 8c99324..7d61507 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -353,13 +353,14 @@ if ($Queue && !$Lifecycle) {
 
 my $ticket = RT::Ticket->new($session{'CurrentUser'}); # empty ticket object
 
-my $Type = RT::IR::TicketType( Lifecycle => $QueueObj->Lifecycle);
+
 if (RT::IR->IsCountermeasureQueue($QueueObj) 
     && RT->Config->Get('RTIR_DisableBlocksQueue') ) {
     Abort(loc("Blocks queue is disabled via config file"));
 }
 
 
+my $Type = RT::IR::TicketType( Lifecycle => $Lifecycle);
 # As of RTIR 3.4, that's only true for Incidents
 # If there's an RTIR specific create page for this kind of ticket, show that
 if ( $m->comp_exists("/RTIR/$Type/Create.html") ) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list