[Rt-commit] [rtir] 07/14: Minor refactoring to remove temp variables
Jesse Vincent
jesse at bestpractical.com
Wed Feb 18 20:55:05 EST 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 4414f8155dcb3272532eccd9efbe585ab25f56ae
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Wed Feb 18 15:56:44 2015 -0800
Minor refactoring to remove temp variables
---
html/RTIR/Incident/Create.html | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 7b7f1d7..2d389f2 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -92,15 +92,13 @@ if ( $ChildObj && !$ChildObj->CurrentUserHasRight('ModifyTicket') ) {
<table width="100%" border="0">
% if ( $Split ) {
-% my $Type = RT::IR::TicketType( Ticket => $SplitObj );
<tr><td class="label"><% loc('Split from') %>:</td>
-<td class="value"><% loc("[_1] #[_2]: [_3]", $Type, $SplitObj->Id, $SplitObj->Subject) %></td></tr>
+ <td class="value"><% loc("[_1] #[_2]: [_3]", RT::IR::TicketType(Lifecycle => $SplitObj->QueueObj->Lifecycle), $SplitObj->Id, $SplitObj->Subject) %></td></tr>
% }
% if ( $ChildObj ) {
-% my $Type = RT::IR::TicketType( Ticket => $ChildObj );
<tr><td class="label"><% loc('Link with') %>:</td>
-<td class="value"><% loc("[_1] #[_2]: [_3]", $Type, $ChildObj->Id, $ChildObj->Subject) %></td></tr>
+ <td class="value"><% loc("[_1] #[_2]: [_3]", RT::IR::TicketType(Lifecycle => $ChildObj->QueueObj->Lifecycle), $ChildObj->Id, $ChildObj->Subject) %></td></tr>
% }
<tr>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list