diff --git a/lib/SGN/Controller/AJAX/Trials.pm b/lib/SGN/Controller/AJAX/Trials.pm index b0b17473e3..e746235e6e 100644 --- a/lib/SGN/Controller/AJAX/Trials.pm +++ b/lib/SGN/Controller/AJAX/Trials.pm @@ -157,7 +157,8 @@ sub trial_lookup : Path('/ajax/breeders/trial_lookup') Args(0) { { 'name' => $trial_name, 'projectprops.type_id' => $trial_type_id }, { join => 'projectprops' } ); - my $trial_id = $rs->project_id() if $rs; + my $trial_id; + $trial_id = $rs->project_id() if $rs; # Trial not found if ( !$trial_id || $trial_id eq '' ) { diff --git a/t/selenium2/breeders/upload_crosses_file.t b/t/selenium2/breeders/upload_crosses_file.t index 05e7de485d..10a9a13e92 100644 --- a/t/selenium2/breeders/upload_crosses_file.t +++ b/t/selenium2/breeders/upload_crosses_file.t @@ -1,3 +1,5 @@ + +use strict; use lib 't/lib'; use Test::More 'tests' => 72;