Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Add a "Delete" link next to the "Take" link

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


arthur_rance at hotmail

Jun 19, 2012, 8:21 AM

Post #1 of 2 (237 views)
Permalink
Add a "Delete" link next to the "Take" link

Hello,
I'd like to add a "Delete" link (to delete a ticket) next to the "Take" link. How would you do that ?


arthur_rance at hotmail

Jun 21, 2012, 1:16 AM

Post #2 of 2 (219 views)
Permalink
Re: Add a "Delete" link next to the "Take" link [In reply to]

I was talking about adding it in the 'Search - Unowned Tickets'.
I tried that :
@Attributes = ( { Name => 'Search - Unowned Tickets', Description => '[_1] newest unowned tickets', # loc Content => { 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> <A HREF=\"__WebPath__/Ticket/Display.html?Status=deleted&id=__id__\">__loc(Delete)__</a> /TITLE: ' ", Query => " Owner = 'Nobody' AND ( Status = 'new' OR Status = 'open')", OrderBy => 'Created', Order => 'DESC' }, },);
...but when I click on "Delete", it redirects me to the page displaying the deleted ticket, instead of staying in the 'Search - Unowned Tickets'.

From: michael.steen [at] livetext
Date: Wed, 20 Jun 2012 19:47:11 -0500
Subject: Re: [rt-users] Add a "Delete" link next to the "Take" link
To: arthur_rance [at] hotmail

If you're talking about adding it to Display.html, I used the following for RT 3.8 to add stalled and deleted buttons.


path/to/rt3/local/html/Callbacks/yourdir/Ticket/Elements/Tabs/Default



<%init>


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


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


$actions->{'delete'} = {
title => loc('Delete'),
path => 'Ticket/Display.html?Status=deleted&id='.$Ticket->id,
};
}
}

</%init>

<%args>
$Ticket => undef
$tabs => undef
$actions => undef
</%args>

On Tue, Jun 19, 2012 at 10:21 AM, Arthur Rance <arthur_rance [at] hotmail> wrote:






Hello,
I'd like to add a "Delete" link (to delete a ticket) next to the "Take" link. How would you do that ?

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.