[Rt-commit] rt branch, 4.0/lc-ticket-type-searches, created. rt-4.0.11-81-geff3e1f

Alex Vandiver alexmv at bestpractical.com
Thu Apr 25 15:18:13 EDT 2013


The branch, 4.0/lc-ticket-type-searches has been created
        at  eff3e1fc9b9dce47bc5136a74931449d6de81a2d (commit)

- Log -----------------------------------------------------------------
commit eff3e1fc9b9dce47bc5136a74931449d6de81a2d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Apr 25 15:07:22 2013 -0400

    Searches for core ticket tyles should be case-insensitive
    
    15a18f9 altered the case of stored Type fields for internal ticket
    types.  Ensure that searches for those values are case-insensitive by
    always searching for their lowered values.

diff --git a/lib/RT/Tickets.pm b/lib/RT/Tickets.pm
index 3b834e0..3a1da4b 100644
--- a/lib/RT/Tickets.pm
+++ b/lib/RT/Tickets.pm
@@ -378,6 +378,8 @@ sub _EnumLimit {
         my $o     = $class->new( $sb->CurrentUser );
         $o->Load($value);
         $value = $o->Id || 0;
+    } elsif ( $field eq "Type" ) {
+        $value = lc $value if $value =~ /^(ticket|approval|reminder)$/i;
     }
     $sb->_SQLLimit(
         FIELD    => $field,

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


More information about the Rt-commit mailing list