[Rt-commit] [rtir] 04/04: RT 4.2 removed ClassifySQLOperation

Kevin Falcone falcone at bestpractical.com
Mon Apr 14 12:59:14 EDT 2014


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

falcone pushed a commit to branch 3.2/deprecated-warnings
in repository rtir.

commit 4a922205c1656a36a5ef8886bc31365859728104
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Apr 14 11:11:06 2014 -0400

    RT 4.2 removed ClassifySQLOperation
    
    Its only core use was a similar check for negativity so steal the core
    code from 43710e2a and use it here.
---
 lib/RT/IR.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 0717339..a29a8c8 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -316,7 +316,7 @@ sub OurQuery {
             my $queue = RT::Queue->new( RT->SystemUser );
             $queue->Load( $_[0]->{'value'} );
             my $our = $self->OurQueue( $queue );
-            my ($negative) = RT::Tickets->ClassifySQLOperation( $_[0]->{'op'} );
+            my ($negative) = ( $_[0]->{'op'} eq '!=' || $_[0]->{'op'} =~ /\bNOT\b/i );
             if ( $our && !$negative ) {
                 $has_our = 1;
                 push @queues, $queue->Name;

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


More information about the rt-commit mailing list