[Rt-commit] [rtir] 02/04: More "Case sensitive search by" warnings

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 441c3ca2b6b54c7a2dc42e7509b83c3ff86b3ebd
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Apr 14 10:59:05 2014 -0400

    More "Case sensitive search by" warnings
    
    Found when running tests
---
 html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter | 1 +
 lib/RT/Action/RTIR_SetConstituencyGroup.pm                     | 2 +-
 lib/RT/IR.pm                                                   | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter b/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
index e70ff4c..3612ef8 100644
--- a/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
+++ b/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
@@ -51,6 +51,7 @@ for my $type (RT::IR->Queues) {
                     OPERATOR => 'NOT STARTSWITH',
                     VALUE => "$type - ",
                     SUBCLAUSE => 'Constituencies',
+                    CASESENSITIVE => 0,
             );
 }
 </%INIT>
diff --git a/lib/RT/Action/RTIR_SetConstituencyGroup.pm b/lib/RT/Action/RTIR_SetConstituencyGroup.pm
index 175fa65..4134941 100644
--- a/lib/RT/Action/RTIR_SetConstituencyGroup.pm
+++ b/lib/RT/Action/RTIR_SetConstituencyGroup.pm
@@ -68,7 +68,7 @@ sub Commit {
     }
     my $groups = $admincc_group->GroupMembersObj( Recursively => 0 );
     $groups->LimitToUserDefinedGroups;
-    $groups->Limit( FIELD => 'Name', OPERATOR => 'STARTSWITH', VALUE => 'DutyTeam ' );
+    $groups->Limit( FIELD => 'Name', OPERATOR => 'STARTSWITH', VALUE => 'DutyTeam ', CASESENSITIVE => 0 );
 
     my $constituency = $ticket->FirstCustomFieldValue('Constituency') || '';
     my $required_group_there = 0;
diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index 7936241..980975d 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -617,7 +617,7 @@ sub DefaultConstituency {
     my @values;
 
     my $queues = RT::Queues->new( RT->SystemUser );
-    $queues->Limit( FIELD => 'Name', OPERATOR => 'STARTSWITH', VALUE => "$name - " );
+    $queues->Limit( FIELD => 'Name', OPERATOR => 'STARTSWITH', VALUE => "$name - ", CASESENSITIVE => 0 );
     while ( my $pqueue = $queues->Next ) {
         next unless $pqueue->HasRight( Principal => $queue->CurrentUser, Right => "ShowTicket" );
         push @values, substr $pqueue->__Value('Name'), length("$name - ");

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


More information about the rt-commit mailing list