[rt-devel] (RT1) Taking tickets directly from summary page

Lorens Kockum rt-dev-id-48 at lists.lorens.org
Mon May 7 13:00:25 EDT 2001


On Thu, Apr 26, 2001 at 05:52:04PM +0200, Lorens Kockum wrote:
> Subject: Taking tickets directly from summary page
>
> Is there any problem with simply adding a condition in the
> "owner" field of the summary, so the if the ticket is not owned,
> the following link is there instead?

On Fri, Apr 27, 2001 at 10:32:55PM -0400, Jesse wrote:
> should work fine.

It did/does. FWIW, here's the diff.

-- 
#include <std_disclaim.h>                          Lorens Kockum
-------------- next part --------------
diff -ur old/lib/rt/ui/web/manipulate.pm new/lib/rt/ui/web/manipulate.pm
--- old/lib/rt/ui/web/manipulate.pm	Thu Mar 22 17:34:50 2001
+++ new/lib/rt/ui/web/manipulate.pm	Mon May  7 17:56:42 2001
@@ -657,7 +661,15 @@
 <font size=-1>$rt::req[$temp]{'subject'}&nbsp;</font>
 </TD>
 <TD NOWRAP>
-<font size=-1><b>$rt::req[$temp]{'owner'}</b>&nbsp;</font>
+<font size=-1>" ;
+
+if ($rt::req[$temp]{'owner'} eq "") {
+  print &fdro_murl_helper("do_req_give=true&do_req_give_to=$current_user","summary","Take",0,$rt::req[$temp]{'serial_num'}) ;
+} else {
+  print "<b>$rt::req[$temp]{'owner'}</b>" ;
+}
+
+print "&nbsp;</font>
 </TD>
 <TD NOWRAP>
 <font size=-1>$rt::req[$temp]{'queue_id'}</font>


More information about the Rt-devel mailing list