@@ -, +, @@ with 'current_branchcode'. --- Koha/Illrequest.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Illrequest.pm +++ a/Koha/Illrequest.pm @@ -730,6 +730,8 @@ attempts to submit the email. sub generic_confirm { my ( $self, $params ) = @_; + my $branch = Koha::Libraries->find($params->{current_branchcode}) + || die "Invalid current branchcode. Are you logged in as the database user?"; if ( !$params->{stage}|| $params->{stage} eq 'init' ) { my $draft->{subject} = "ILL Request"; $draft->{body} = <find($params->{current_branchcode}) - || die "Invalid current branchcode. Are you logged in as the database user?"; my @address = map { $branch->$_ } qw/ branchname branchaddress1 branchaddress2 branchaddress3 branchzip branchcity branchstate branchcountry branchphone --