X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FApprovals%2FElements%2FApprove;h=128a373c7bbd3156d8858e68aa14805e97ec2799;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=f651139fab20861dc092fc6ed16961bae244cd1c;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/rt/share/html/Approvals/Elements/Approve b/rt/share/html/Approvals/Elements/Approve index f651139fa..128a373c7 100755 --- a/rt/share/html/Approvals/Elements/Approve +++ b/rt/share/html/Approvals/Elements/Approve @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2017 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -58,7 +58,7 @@ <& /Ticket/Elements/ShowCustomFields, Ticket => $approving &> % } % if ($ShowHistory) { - <& /Ticket/Elements/ShowHistory, Ticket => $approving, Collapsed => 0, ShowTitle => 0, ShowHeaders => 0, ShowDisplayModes => 0, ShowTitleBarCommands => 0 &> + <& /Elements/ShowHistory, Object => $approving, ShowTitle => 0, ShowHeaders => 0, ShowDisplayModes => 0, ShowActions => 0, PathPrefix => RT->Config->Get('WebPath')."/Ticket/" &> % } @@ -67,17 +67,29 @@
+% if ( $inactive && $status eq 'resolved' ) { + + +% } else { +% }
+% if ( $inactive && $status ne 'resolved' ) { + + +% } else { +% }
+% unless ( $inactive ) {
+% }
@@ -92,3 +104,7 @@ $ShowCustomFields => 1 $ShowHistory => 1 $ticket => undef +<%INIT> +my $status = $ticket->Status; +my $inactive = $ticket->LifecycleObj->IsInactive( $status ); +