[rt-devel] Inverting Ticket Priority

Steve Radich stever at bitshop.com
Fri May 24 00:27:24 EDT 2002


We still run 1.0 for production.. but..

We simply added a link bar at the top of all pages - manipulate.pm:

Original code:
  print "<META HTTP-EQUIV=\"REFRESH\" CONTENT=\"".
$rt::ui::web::FORM{'refresh'}
."\">";
  }
  $query = $ENV{'QUERY_STRING'};
  $query =~ s/q_sort=(.*?)\&//;
  $query =~ s/q_reverse=(.*?)\&//;
  $query =~ s/&&//g;
  print "<!-- Query String
$query_string
-->
/********************---Inserted code..
<center>
<A
HREF=\"$ScriptURL?q_sort=last&q_reverse=1&q_status=open&q_queue=Support&refr
e
sh=300&display=Queue\">Q-Support</A> |
<A HREF=\"$ScriptURL\">Q-All</A> |
Resolve:
<A HREF=\"/scripts/webrt/resolve-whatsup.pl\">Whatsup</A> |
<A HREF=\"/scripts/webrt/resolve-mrtg.pl\">mrtg</A> |
<A HREF=\"/scripts/webrt/resolve-rdate.pl\">rdate</A> |
<p>
</center>
/********************---Original code below..
<font size=\"$QUEUE_FONT\">
<TABLE cellpadding=3 cellspacing=1 border=0 width=\"100%\"
bgcolor=\"\#bbbbbb\">
 
That way it's no real code changes to the queries, etc.

Steve Radich - Colocation / Virtual Dedicated / Dedicated Servers 
BitShop, Inc. - http://www.bitshop.com - $149/month colo special


-----Original Message-----
From: Marc Davignon [mailto:mpdavig at des.jhy.us.ml.com] 
Sent: Friday, May 24, 2002 12:12 AM
To: Swayne, Mark A
Cc: 'Marc Davignon'; rt-devel at lists.fsck.com
Subject: RE: [rt-devel] Inverting Ticket Priority

Looks like there are three relevant files in the source:

webrt/Elements/MyRequests     # Handles highest priority tickets I requested
webrt/Elements/MyTickets      # Handles highest priority tickets I own
webrt/Ticket/Elements/ShowRequestor # Handles More about John Doe

Changing 'DESC' to 'ASC' appears to do the trick as you mention does the 
trick.

Created a patch using diff, patched the source, and reinstalled RT 2.0.13.

I just recently patched our production installation without incident.

-- 
Thanks,
Marc Davignon
Systems Administrator, Merrill Lynch ITG



_______________________________________________
rt-devel mailing list
rt-devel at lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel




More information about the Rt-devel mailing list