@@ -, +, @@ - 1 for all librairies (1) - 1 for the library of the superlibrarian (2) - 1 for another library (3) --- C4/Letters.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/C4/Letters.pm +++ a/C4/Letters.pm @@ -203,11 +203,9 @@ sub getletter { $lang = 'default' unless( $lang && C4::Context->preference('TranslateNotices') ); - if ( C4::Context->preference('IndependentBranches') - and $branchcode - and C4::Context->userenv ) { - - $branchcode = C4::Context->userenv->{'branch'}; + my $only_my_library = C4::Context->only_my_library; + if ( $only_my_library and $branchcode ) { + $branchcode = C4::Context::mybranch(); } $branchcode //= ''; --