On Fri, Oct 19, 2012 at 02:10:09PM -0400, Jim Lesinski wrote:
>    Is there some way to make the quick update plugin only show the correct 
> status values for the
>    current queue's lifecycle? Currently the Quick Update plugin shows all 
> status values from all
>    lifecycles.

It's pretty easy to make it do that, something as small as the
attached patch would do it.  I'm not sure if the intent of the
original author was to list all Statuses because you may also change
queues as part of the update (and may thus need all statuses) or if
it's just never been updated since the days when we only had global
statuses.

-kevin
From 95766749f37c9916e36a16197bc56e6b82cc755b Mon Sep 17 00:00:00 2001
From: Kevin Falcone <[email protected]>
Date: Fri, 19 Oct 2012 20:37:26 -0400
Subject: [PATCH] Pass $Ticket to SelectStatus so it can narrow down to
 relevant statuses.

---
 html/Ticket/Elements/QuickUpdate |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/html/Ticket/Elements/QuickUpdate b/html/Ticket/Elements/QuickUpdate
index a3bf893..af150fe 100755
--- a/html/Ticket/Elements/QuickUpdate
+++ b/html/Ticket/Elements/QuickUpdate
@@ -47,7 +47,7 @@
 <input type="hidden" class="hidden" name="id" value="<% $Ticket->id %>" />
 <table>
   <tr>
- <td class="label">Status:</td><td> <& /Elements/SelectStatus, Name => 
'Status', DefaultLabel => loc("[_1] (Unchanged)", loc($Ticket->Status)) &> </td>
+ <td class="label">Status:</td><td> <& /Elements/SelectStatus, Name => 
'Status', DefaultLabel => loc("[_1] (Unchanged)", loc($Ticket->Status)), 
TicketObj => $Ticket &> </td>
   </tr>
   <tr>
   <td class="label">
-- 
1.7.6.4

Attachment: pgp51yLCqOq7Y.pgp
Description: PGP signature

--------
Final RT training for 2012 in Atlanta, GA - October 23 & 24
  http://bestpractical.com/training

We're hiring! http://bestpractical.com/jobs

Reply via email to