From c33b3b1342928f046b17383993dc5337e8cc022a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 5 May 2017 16:09:13 -0400 Subject: [PATCH] Bug 17762 (QA Followup) Use default lang if pref disabled Signed-off-by: Kyle M Hall --- C4/Letters.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index ea5cb9fa1a..8df9df23fc 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -200,7 +200,8 @@ sub GetLettersAvailableForALibrary { sub getletter { my ( $module, $code, $branchcode, $message_transport_type, $lang) = @_; $message_transport_type //= '%'; - $lang //= 'default'; + $lang = 'default' unless( $lang && C4::Context->preference('TranslateNotices') ); + if ( C4::Context->preference('IndependentBranches') and $branchcode -- 2.39.5