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

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2017-05-05 16:09:13 -04:00 committed by Kyle M Hall
parent 4308e38fbf
commit c33b3b1342

View file

@ -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