[Rt-devel] PATCH: Approvals/Elements/Approve

Drew Taylor DTaylor at cidc.com
Tue Jul 18 13:38:02 EDT 2006


We're implementing heavy duty, multi-level approvals at $work, and want
a streamlined My Approvals screen. The following patch to
Approvals/Elements/Approve adds an easy way for us to hide the Custom
Fields (we have lots!) and History sections. This is essential for us
since the parent ticket could generate potentially many subtickets, each
of which has its own approval ticket.

Drew

--- Approve     2006-07-18 17:34:19.000000000 +0000
+++ Approve.orig        2006-07-18 17:34:59.000000000 +0000
@@ -52,8 +52,12 @@
   <div class="originating-ticket">
     <span class="link"><a
href="<%$RT::WebPath%>/Ticket/Display.html?id=<% $approving->Id
%>"><&|/l, $approving->Id, $approving->Subject &>Originating ticket:
#[_1] ([_2])</&></a></span>
     <div class="info">
+% if ($ShowCustomFields) {
       <& /Ticket/Elements/ShowCustomFields, Ticket => $approving &>
+% }
+% if ($ShowHistory) {
       <& /Ticket/Elements/ShowHistory, Ticket => $approving, Collapsed
=> 0, ShowTitle => 0, ShowHeaders => 0, ShowDisplayModes => 0,
ShowTitleBarCommands => 0 &>
+% }
     </div>
   </div>
 %     }
@@ -82,5 +86,7 @@
 </div>
 <%ARGS>
 $ShowApproving => 1
+$ShowCustomFields => 1
+$ShowHistory => 1
 $ticket => undef
 </%ARGS>


More information about the Rt-devel mailing list