[Bps-public-commit] cpan2rt branch, master, updated. fdf1d84d4d605d9bfc28bc6b1b844059cd2e99a9

Dianne Skoll dianne at bestpractical.com
Fri Feb 26 09:02:37 EST 2021


The branch, master has been updated
       via  fdf1d84d4d605d9bfc28bc6b1b844059cd2e99a9 (commit)
      from  17b977521f85e62810a6b345b45d3293a9bc741a (commit)

Summary of changes:
 lib/CPAN2RT.pm | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit fdf1d84d4d605d9bfc28bc6b1b844059cd2e99a9
Author: Dianne Skoll <dianne at bestpractical.com>
Date:   Fri Feb 26 09:02:23 2021 -0500

    Core RT treats custom fields as case-insensitive; let's do the same

diff --git a/lib/CPAN2RT.pm b/lib/CPAN2RT.pm
index b834147..eaa9ed3 100644
--- a/lib/CPAN2RT.pm
+++ b/lib/CPAN2RT.pm
@@ -863,10 +863,9 @@ sub load_or_create_version_cf {
 
     my $cfs = RT::CustomFields->new( $RT::SystemUser );
 
-    # Explicitly specify case-sensitive searches.  Newer versions
-    # of RT::SearchBuilder issue a warning if we don't do that,
-    # so silence the warnings.
-    $cfs->Limit( FIELD => 'Name', VALUE => $name, CASESENSITIVE => 1 );
+    # Explicitly specify case-insensitive searches.  Newer versions
+    # of RT::SearchBuilder issue a warning if we don't do that.
+    $cfs->Limit( FIELD => 'Name', VALUE => $name, CASESENSITIVE => 0 );
 
     $cfs->LimitToQueue( $queue->id );
     $cfs->{'find_disabled_rows'} = 0;   # This is why we don't simply do a LoadByName

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list