<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<font face="Courier New"><font size="2">I was talking about adding it in the </font>'Search - Unowned Tickets'.</font><div><font face="Courier New"><br></font></div><div><font face="Courier New">I tried that :</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New"><div>@Attributes = (</div><div>   { Name => 'Search - Unowned Tickets',</div><div>     Description => '[_1] newest unowned tickets', # loc</div><div>     Content     =></div><div><span style="font-size: 10pt; ">     { Format => "'<a href=\"__WebPath__/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"__WebPath__/Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', QueueName, ExtendedStatus, CreatedRelative, '<A HREF=\"__WebPath__/Ticket/Display.html?Action=Take&id=__id__\">__loc(Take)__</a> <font color="#00b050"><A HREF=\"__WebPath__/Ticket/Display.html?Status=deleted&id=__id__\">__loc(Delete)__</a></font> /TITLE: ' ", Query   => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')",</span></div><div>       OrderBy => 'Created',</div><div>       Order   => 'DESC' },</div><div>   },</div><div>);</div><div><br></div><div>...but when I click on "Delete", it redirects me to the page displaying the deleted ticket, instead of staying in the <span style="font-size: 10pt; ">'Search - Unowned Tickets'.</span></div></font></div><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: michael.steen@livetext.com<br>Date: Wed, 20 Jun 2012 19:47:11 -0500<br>Subject: Re: [rt-users] Add a "Delete" link next to the "Take" link<br>To: arthur_rance@hotmail.com<br><br>If you're talking about adding it to Display.html, I used the following for RT 3.8 to add stalled and deleted buttons.<br><br><br>path/to/rt3/local/html/Callbacks/yourdir/Ticket/Elements/Tabs/Default<br><br><br><br><%init><br>

if ($Ticket) {<br>#    if ($Ticket->CurrentUserHasRight('ModifyTicket') && ($Ticket->Status ne 'stalled')) {<br>#        $actions->{'stall'} = {<br>#            title => loc('Stall'),<br>

#            path => 'Ticket/Update.html?Action=Comment&DefaultStatus=stalled&id='.$Ticket->id,<br>#        };<br>#    }<br>    if ($Ticket->CurrentUserHasRight('DeleteTicket') && ($Ticket->Status ne 'deleted')) {<br>

        $actions->{'delete'} = {<br>            title => loc('Delete'),<br>            path => 'Ticket/Display.html?Status=deleted&id='.$Ticket->id,<br>        };<br>    }<br>}<br>
</%init><br>
<%args><br>$Ticket => undef<br>$tabs => undef<br>$actions => undef<br></%args><br><br><div class="ecxgmail_quote">On Tue, Jun 19, 2012 at 10:21 AM, Arthur Rance <span dir="ltr"><<a href="mailto:arthur_rance@hotmail.com">arthur_rance@hotmail.com</a>></span> wrote:<br>

<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<font style="font-size:10pt" face="Courier New" size="2">Hello,</font><div><font style="font-size:10pt" face="Courier New" size="2"><br></font></div><div><font style="font-size:10pt" face="Courier New" size="2">I'd like to add a "Delete" link (to delete a ticket) next to the "Take" link. How would you do that ?</font></div>

<div><font style="font-size:10pt" face="Courier New" size="2"><br></font></div><div><font style="font-size:10pt" face="Courier New" size="2"><br></font></div>                                    </div></div>
</blockquote></div><br></div>                                     </div></body>
</html>