Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
titima15 committed Dec 3, 2024
1 parent 359591a commit 075cb3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/SGN/Controller/AJAX/Trials.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 '' ) {
Expand Down
2 changes: 2 additions & 0 deletions t/selenium2/breeders/upload_crosses_file.t
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

use strict;
use lib 't/lib';

use Test::More 'tests' => 72;
Expand Down

0 comments on commit 075cb3d

Please sign in to comment.