[Rt-commit] [rtir] 08/09: Update "QueueSummary" widget to be sensitive to the new Constituency filter
Jesse Vincent
jesse at bestpractical.com
Tue Mar 10 21:11:09 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit a0c5f227055bb106e4bcdeb2f1ff0d58ccb2c94b
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Tue Mar 10 17:36:27 2015 -0700
Update "QueueSummary" widget to be sensitive to the new Constituency filter
---
html/RTIR/Elements/QueueSummary | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/html/RTIR/Elements/QueueSummary b/html/RTIR/Elements/QueueSummary
index c97cedc..b0e8218 100644
--- a/html/RTIR/Elements/QueueSummary
+++ b/html/RTIR/Elements/QueueSummary
@@ -86,7 +86,16 @@ for my $queue (@queues) {
<%INIT>
my $unwanted = $session{'CurrentUser'}->UserObj->Preferences('QuickSearch', {});
-my $queue_filter =sub { $_->CurrentUserHasRight('ShowTicket') && !exists $unwanted->{$_->Name}};
+
+my $queue_filter =sub {
+ my $q = $_;
+ return undef if !$q->CurrentUserHasRight('ShowTicket');
+ return undef if exists $unwanted->{$q->Name};
+ return undef if ($m->{'RTIR_ConstituencyFilter'}
+ && $q->FirstCustomFieldValue('RTIR Constituency')
+ ne $m->{'RTIR_ConstituencyFilter'});
+ return 1;
+};
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list