Skip to content

Commit

Permalink
Update TicketSQL RT generated in tests for RT 5.0.6
Browse files Browse the repository at this point in the history
RT 5.0.6 removes duplicate space from TicketSQL, see also 863714d30a there.
  • Loading branch information
sunnavy committed Apr 26, 2024
1 parent 70654f0 commit ea2c6b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/searches/menu.t
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ for my $type ( 'incident', 'ir', 'investigation', 'countermeasure' ) {
my ($input_query) = $m->find_all_inputs( name => 'Query' );
is(
$input_query->value,
q{( Lifecycle = 'incident_reports' ) AND ( Status = 'new' OR Status = 'open' ) AND MemberOf != 1},
RT::Handle::cmp_version( $RT::VERSION, '5.0.6' ) >= 0
? q{( Lifecycle = 'incident_reports' ) AND ( Status = 'new' OR Status = 'open' ) AND MemberOf != 1}
: q{( Lifecycle = 'incident_reports' ) AND ( Status = 'new' OR Status = 'open' ) AND MemberOf != 1},
'Query input is correct'
);

Expand Down

0 comments on commit ea2c6b0

Please sign in to comment.