diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 651fdb497b..b98c4098a9 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -327,7 +327,7 @@ sub transferbook { my $trigger = $params->{trigger}; my $messages; my $dotransfer = 1; - my $item = Koha::Items->find( { barcode => $barcode } ); + my $item = $barcode ? Koha::Items->find( { barcode => $barcode } ) : undef; Koha::Exceptions::MissingParameter->throw( "Missing mandatory parameter: from_branch")