X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FApprovals%2FElements%2FApprove;h=e9a3762bd491d79f2f2084c6d2c662efd0cba8f9;hb=b8988e1d3ac75af63c85e8563e57701030315a9e;hp=f651139fab20861dc092fc6ed16961bae244cd1c;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/share/html/Approvals/Elements/Approve b/rt/share/html/Approvals/Elements/Approve index f651139fa..e9a3762bd 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-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -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->QueueObj->Lifecycle->IsInactive( $status ); +