[rt-devel] Stalled patch

Christian Kurz Christian.Kurz at planNET.de
Thu Jun 7 09:00:55 EDT 2001


Hi,

here's a simple patch against rt 1.3.80 that includes a new status
overview for 25 stalled tickets. jesse, would you mind including it?

Christian
-- 
Christian Kurz                                   http://www.planNET.de
planNET Systems GmbH                            mailto:info at planNET.de
Schoenfeldstr. 8                              Telefon: +49 721 66 36 0
D-76131 Karlsruhe                           Telefax: +49 721 66 36 199 
-------------- next part --------------
diff -uNr rt-1-3-80/webrt/Elements/MyStalled rt-1-3-80-n/webrt/Elements/MyStalled
--- rt-1-3-80/webrt/Elements/MyStalled	Thu Jan  1 01:00:00 1970
+++ rt-1-3-80-n/webrt/Elements/MyStalled	Thu Jun  7 14:34:05 2001
@@ -0,0 +1,42 @@
+<& /Elements/TitleBoxStart, title => "25 stalled tickets I own..." &>
+<TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH=100%>
+<TR>
+<TH ALIGN=RIGHT>#</TH>
+<TH ALIGN=LEFT>Subject</TH>
+<TH ALIGN=LEFT>Queue</TH>
+<TH ALIGN=LEFT>Status</TH>
+<TH ALIGN=LEFT>&nbsp;</TH>
+</TR>
+% while (my $Ticket = $MyTickets->Next) {
+<TR>
+<TD ALIGN=RIGHT>
+<%$Ticket->Id%>
+</TD>
+<TD>
+<A HREF="<% $RT::WebPath %>/Ticket/Display.html?id=<%$Ticket->Id%>">
+<%$Ticket->Subject%>
+</A>
+</TD>
+<TD>
+<%$Ticket->QueueObj->Name%>
+</TD><TD>
+<%$Ticket->Status%>
+</TD>
+<TD ALIGN=RIGHT>
+[<A HREF="<% $RT::WebPath %>/Ticket/Update.html?id=<%$Ticket->Id%>">Update</A>]
+</TD>
+</TR>
+% }
+</TABLE>
+<& /Elements/TitleBoxEnd &>
+
+
+<%INIT>
+my $MyTickets;
+$MyTickets = new RT::Tickets ($session{'CurrentUser'});
+$MyTickets->LimitOwner(VALUE => $session{'CurrentUser'}->Id);
+$MyTickets->LimitStatus(VALUE => "stalled");
+$MyTickets->OrderBy(FIELD => 'Priority', ORDER => 'DESC');
+$MyTickets->RowsPerPage(25);
+
+</%INIT>
diff -uNr rt-1-3-80/webrt/index.html rt-1-3-80-n/webrt/index.html
--- rt-1-3-80/webrt/index.html	Wed Mar 28 05:30:47 2001
+++ rt-1-3-80-n/webrt/index.html	Thu Jun  7 14:45:59 2001
@@ -6,6 +6,8 @@
 <& /Elements/MyTickets &>
 <BR>
 <& /Elements/MyRequests &>
+<BR>
+<& /Elements/MyStalled &>
 </TD>
 <TD>
 <& /Elements/Quicksearch &>


More information about the Rt-devel mailing list