[rt-devel] Simple ShowBasics tweak to get back to Queue

Scott A. McIntyre scott at xs4all.nl
Tue Apr 9 03:20:18 EDT 2002


Oops.  I really should have sent this to rt-devel.  Anyway:




----- Forwarded message from "Scott A. McIntyre" <scott at xs4all.nl> -----

From: "Scott A. McIntyre" <scott at xs4all.nl>
Date: Tue, 9 Apr 2002 07:45:48 +0200
To: RT-Users <rt-users at lists.fsck.com>
Subject: [rt-users] Simple ShowBasics tweak to get back to Queue

Hi,

I added this the other day and thought others may find it useful;
basically, we wanted a shortcut way to get from a Ticket display screen
back to the queue that the ticket belonged.  This patch will make the
queue name in the Show Basics box a link back to the queue itself:

*** /path/to/rt2/WebRT/html/Ticket/Elements/ShowBasics        Fri Apr 5 13:54:07 2002
--- /path/to/rt2/local/WebRT/html/Ticket/Elements/ShowBasics  Mon Apr 8 13:42:41 2002
***************
*** 12,22 ****
          <& /Elements/ShadedBox, title => 'Priority', content=> $Ticket->Priority."/".$Ticket->FinalPriority &>
        </TD>
        <TD VALIGN=TOP WIDTH="20%">
          <& /Elements/ShadedBox, title => 'Queue', content=> $Ticket->QueueObj->Name &>
!       </TD>
!
        </TR>
      </TABLE>
  <%INIT>
  my $TimeWorked = $Ticket->TimeWorked;
  if ($Ticket->TimeLeft > 0 ) {
--- 12,24 ----
          <& /Elements/ShadedBox, title => 'Priority', content=>
$Ticket->Priority."/".$Ticket->FinalPriority &>
        </TD>
        <TD VALIGN=TOP WIDTH="20%">
+         <a href="/Search/Listing.html?ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$Ticket->QueueObj->Id%>&RowsPerPage=50&NewSearch=1">
          <& /Elements/ShadedBox, title => 'Queue', content=> $Ticket->QueueObj->Name &>
!         </a>
!       </TD>
        </TR>
      </TABLE>
+
  <%INIT>
  my $TimeWorked = $Ticket->TimeWorked;
  if ($Ticket->TimeLeft > 0 ) {




It's really just the one line, the href, but it's saved us some time.

Scott


----- End forwarded message -----




More information about the Rt-devel mailing list