[rt-users] QuickUpdate shows all status values for all lifecycles - rt 4.0.7

Kevin Falcone falcone at bestpractical.com
Mon Oct 22 12:46:25 EDT 2012


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
-------------- next part --------------
From 95766749f37c9916e36a16197bc56e6b82cc755b Mon Sep 17 00:00:00 2001
From: Kevin Falcone <falcone at bestpractical.com>
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20121022/78e7d8e4/attachment.sig>


More information about the rt-users mailing list