@@ -, +, @@ non-opac calls --- C4/Circulation.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -2972,9 +2972,8 @@ sub AddRenewal { $branch = 'OPACRenew'; } } - else { - $branch = - C4::Context->userenv ? C4::Context->userenv->{branch} : $branch; + elsif ( !$branch && C4::Context->userenv ) { + $branch = C4::Context->userenv->{branch}; } # Add the renewal to stats --