[Rt-commit] r17980 - in rt/3.999/branches/merge_to_3.8.2: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Jan 28 22:35:34 EST 2009


Author: sunnavy
Date: Wed Jan 28 22:35:30 2009
New Revision: 17980

Modified:
   rt/3.999/branches/merge_to_3.8.2/   (props changed)
   rt/3.999/branches/merge_to_3.8.2/share/html/Elements/Quicksearch

Log:
 r19140 at sunnavys-mb:  sunnavy | 2009-01-29 10:37:38 +0800
 merged share/html/Elements/Quicksearch


Modified: rt/3.999/branches/merge_to_3.8.2/share/html/Elements/Quicksearch
==============================================================================
--- rt/3.999/branches/merge_to_3.8.2/share/html/Elements/Quicksearch	(original)
+++ rt/3.999/branches/merge_to_3.8.2/share/html/Elements/Quicksearch	Wed Jan 28 22:35:30 2009
@@ -51,11 +51,15 @@
 <& /Elements/QueueSummary,
    cache => 'quick_search_queues',
    queue_filter => sub  { $_->current_user_has_right('ShowTicket') && !exists $unwanted->{$_->name} },
-   conditions => [ {cond => "Status = 'new'",  name => _('new')  },
-		   {cond => "Status = 'open'", name => _('open') },
-		   {cond => "Status = 'stalled'", name => _('stalled') }] &>
+   conditions => \@conditions,
+&>
 </&>
 </div>
 <%INIT>
 my $unwanted = Jifty->web->current_user->user_object->preferences('QuickSearch', {});
+
+my @conditions = ();
+foreach ( RT::Model::Queue->active_status_array ) {
+    push @conditions, { cond => "Status = '$_'", name => _($_) };
+}
 </%INIT>


More information about the Rt-commit mailing list