[rt-users] Delete Button
Rick Measham
rickm at mailguard.com.au
Thu Nov 10 21:05:44 EST 2005
Andrew Xenides wrote:
> Has anyone been able to make a delete link that sits up near the
> resolve/open/take links?
The following patch will do it for you... but remember that you don't
get a confirmation at all ... once the link is clicked on, the ticket it
deleted (though the resulting page would let you re-instate it!)
Cheers!
Rick Measham
--- /opt/rt3/share/html/Ticket/Elements/Tabs 2005-02-11
08:25:22.000000000 +1100
+++ /opt/rt3/local/html/Ticket/Elements/Tabs 2005-11-11
13:02:42.000000000 +1100
@@ -160,6 +160,13 @@
}
}
+if ( $Ticket->CurrentUserHasRight('DeleteTicket') ) {
+ $actions->{'G'} = {
+ title => loc('Delete'),
+ path => "Ticket/Modify.html?id=$id&Status=deleted"
+ }
+}
+
if ( $Ticket->CurrentUserHasRight('OwnTicket') ) {
if ( $Ticket->OwnerObj->id == $RT::Nobody->id ) {
$actions->{'D'} = { path =>
"Ticket/Display.html?Action=Take&id=" . $id,
--
Rick Measham <rickm at mailguard.com.au>
MailGuard Pty. Limited
Email anti-virus, anti-spam and content filtering
Melbourne 68-72 York St South Melbourne VIC 3205 P +61 3 9694 4444
Sydney Level 20, Tower 2 Darling Park,
201 Sussex Street, Sydney NSW 2000 P +61 2 9004 7889
http://www.mailguard.com.au/mg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3190 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20051111/8cb37872/attachment.bin>
More information about the rt-users
mailing list