diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:16:28 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-06-04 00:16:28 -0700 |
commit | 7588a4ac90a9b07c08a3107cd1107d773be1c991 (patch) | |
tree | 55b8bedb5f899e705da0ba7f608267943bf89e94 /rt/share/html/Prefs/Quicksearch.html | |
parent | 98d2b25256055abb0dfcb9f586b434474fa97afd (diff) |
RT 4.0.13
Diffstat (limited to 'rt/share/html/Prefs/Quicksearch.html')
-rw-r--r-- | rt/share/html/Prefs/Quicksearch.html | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/rt/share/html/Prefs/Quicksearch.html b/rt/share/html/Prefs/Quicksearch.html index 7142450cb..cb4292a25 100644 --- a/rt/share/html/Prefs/Quicksearch.html +++ b/rt/share/html/Prefs/Quicksearch.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# <sales@bestpractical.com> %# %# (Except where explicitly superseded by other copyright notices) @@ -60,7 +60,16 @@ checked="checked" /><%$queue->Name%><% $queue->Description ? ': '.$queue->Description : '' %></li> % } </ul> -<& /Elements/Submit, Caption => loc("Save Changes"), Label => loc('Save'), Name => 'Save'&> + +<& /Elements/Submit, + Caption => loc("Save Changes"), + Label => loc('Save'), + Name => 'Save', + Reset => 1, + CheckAll => 1, + ClearAll => 1, + CheckboxNameRegex => '/^Want-/', + &> </form> @@ -71,7 +80,16 @@ my $user = $session{'CurrentUser'}->UserObj; my $unwanted = $user->Preferences('QuickSearch', {}); my $Queues = RT::Queues->new($session{'CurrentUser'}); $Queues->UnLimit; -my @queues = grep {$_->CurrentUserHasRight('ShowTicket')} @{$Queues->ItemsArrayRef}; + +my $right = 'ShowTicket'; +$m->callback( + CallbackName => 'ModifyQueues', + Queues => \$Queues, + Right => \$right, + Unwanted => $unwanted, +); + +my @queues = grep { $right ? $_->CurrentUserHasRight($right) : 1 } @{$Queues->ItemsArrayRef}; if ($ARGS{'Save'}) { for my $queue (@queues) { |