[Rt-commit] r4919 - in rtir/branches/1.9-EXPERIMENTAL:
html/RTIR/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Thu Mar 30 19:26:03 EST 2006
Author: ruz
Date: Thu Mar 30 19:26:03 2006
New Revision: 4919
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/QueueTabs
Log:
r1197 at cubic-pc: cubic | 2006-03-31 04:26:03 +0400
* reject is reasonable only when ticket is active
Modified: rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/QueueTabs
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/QueueTabs (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/RTIR/Elements/QueueTabs Thu Mar 30 19:26:03 2006
@@ -189,7 +189,7 @@
title => loc('Quick Resolve'),
};
}
- if ( $Type eq 'Incident' ) {
+ if ( $Type eq 'Incident' ) {
$actions->{'B'} = {
path =>
"RTIR/Incident/Reply.html?id=$id&Action=Comment&All=1&DefaultStatus=rejected&SelectAllTickets=1",
@@ -216,20 +216,22 @@
title => loc('Steal')
};
}
- }
+ }
+
+ if ( ( $can{'ModifyTicket'} || $can{'OwnTicket'} )
+ && $Ticket->QueueObj->IsActiveStatus( $Ticket->Status ) )
+ {
+ if ( $Type eq 'Report' ) {
+ $actions->{'B'} = {
+ path => "RTIR/Update.html?Action=Comment&TakeOrStealFirst=1&DefaultStatus=rejected&id=$id",
+ title => loc('Reject'),
+ };
- if ( $can{'ModifyTicket'} || $can{'OwnTicket'} ) {
- if ( $Type eq 'Report' ) {
- $actions->{'B'} = {
- path => "RTIR/Update.html?Action=Comment&TakeOrStealFirst=1&DefaultStatus=rejected&id=$id",
- title => loc('Reject'),
- };
-
- $actions->{'Bb'} = {
- path => "RTIR/Display.html?Status=rejected&TakeOrStealFirst=1&id=$id",
- title => loc('Quick Reject'),
- };
- }
+ $actions->{'Bb'} = {
+ path => "RTIR/Display.html?Status=rejected&TakeOrStealFirst=1&id=$id",
+ title => loc('Quick Reject'),
+ };
+ }
}
if ( $can{'ModifyTicket'} || $can{'CommentOnTicket'} ) {
More information about the Rt-commit
mailing list