Skip to content

Commit 2952c19

Browse files
Emmanuel Lacoursunnavy
authored andcommitted
Add test for LIKE search on numerical customfield
1 parent b298bb7 commit 2952c19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/ticket/search_by_cf_numeric.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ $tickets->FromSQL(q{Queue = 'General' AND CF.test_cf < CF.test_cf2 });
5252
is( $tickets->Count, 1, 'Found 1 ticket' );
5353
is( $tickets->First->id, $tickets[1]->id, 'Found the small ticket' );
5454

55+
$tickets->FromSQL(q{Queue = 'General' AND CF.test_cf LIKE 2 });
56+
is( $tickets->Count, 1, 'Found 1 ticket' );
57+
is( $tickets->First->id, $tickets[0]->id, 'Found the big ticket' );
58+
5559
$tickets->FromSQL(q{Queue = 'General'});
5660
is( $tickets->Count, 2, 'Found 2 tickets' );
5761
$tickets->OrderByCols( { FIELD => 'CustomField.test_cf' } );

0 commit comments

Comments
 (0)