[Rt-commit] [rtir] 03/03: Correct a return value from arrayref to array

Kevin Falcone falcone at bestpractical.com
Fri Apr 18 21:20:08 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch master
in repository rtir.

commit f650c08978227ed29de11bc37b05de39ea1ca51e
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Apr 18 13:49:16 2014 -0400

    Correct a return value from arrayref to array
    
    Noticed while cleaning up the regex to use OurQueue
---
 lib/RT/IR.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 726b0f9..a5d0889 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -675,8 +675,8 @@ if ( RT::IR->HasConstituency ) {
         # and the negative cache (_none) is disabled, leading to perf problems.
         # It's also somewhat concerning that we return a SystemUser queue outside IR queues.
         if ( ( $self->CurrentUser->id == RT->SystemUser->id ) ||
-             ( $queue->Name !~ /^(Incidents|Incident Reports|Investigations|Blocks)$/i ) ) {
-            return [$queue];
+             ( ! RT::IR->OurQueue( $queue ) ) ) {
+            return $queue;
         }
 
         # Old old bulletproofing, can probably delete.

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list