Commit c33b3b13 authored by Wm. Nick Clemens's avatar Wm. Nick Clemens Committed by Kyle M Hall

Bug 17762 (QA Followup) Use default lang if pref disabled

Signed-off-by: default avatarKyle M Hall <kyle@bywatersolutions.com>
parent 4308e38f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment