X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fquery_builder.t;h=dbe9099393377757940ebb608ec7a8d3937ff016;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=13cd1b5d0c3008f70d5d34f5ca7f7c640e92fede;hpb=7588a4ac90a9b07c08a3107cd1107d773be1c991;p=freeside.git diff --git a/rt/t/web/query_builder.t b/rt/t/web/query_builder.t index 13cd1b5d0..dbe909939 100644 --- a/rt/t/web/query_builder.t +++ b/rt/t/web/query_builder.t @@ -3,7 +3,6 @@ use warnings; use HTTP::Request::Common; use HTTP::Cookies; use LWP; -use Encode; use RT::Test tests => 70; my $cookie_jar = HTTP::Cookies->new; @@ -197,7 +196,7 @@ diag "click advanced, enter 'C1 OR ( C2 AND C3 )', apply, aggregators should sta # create a custom field with nonascii name and try to add a condition { my $cf = RT::CustomField->new( RT->SystemUser ); - $cf->LoadByName( Name => "\x{442}", Queue => 0 ); + $cf->LoadByName( Name => "\x{442}", LookupType => RT::Ticket->CustomFieldLookupType, ObjectId => 0 ); if ( $cf->id ) { is($cf->Type, 'Freeform', 'loaded and type is correct'); } else { @@ -213,10 +212,10 @@ diag "click advanced, enter 'C1 OR ( C2 AND C3 )', apply, aggregators should sta ok( $response->is_success, "Fetched " . $url."Search/Build.html" ); ok($agent->form_name('BuildQuery'), "found the form once"); - $agent->field("ValueOf'CF.{\x{442}}'", "\x{441}"); + $agent->field("ValueOfCF.{\x{442}}", "\x{441}"); $agent->submit(); is( getQueryFromForm($agent), - "'CF.{\x{442}}' LIKE '\x{441}'", + "CF.{\x{442}} LIKE '\x{441}'", "no changes, no duplicate condition with badly encoded text" );