Bug 17762 (QA Followup) Use default lang if pref disabled
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
4308e38fbf
commit
c33b3b1342
1 changed files with 2 additions and 1 deletions
|
@ -200,7 +200,8 @@ sub GetLettersAvailableForALibrary {
|
||||||
sub getletter {
|
sub getletter {
|
||||||
my ( $module, $code, $branchcode, $message_transport_type, $lang) = @_;
|
my ( $module, $code, $branchcode, $message_transport_type, $lang) = @_;
|
||||||
$message_transport_type //= '%';
|
$message_transport_type //= '%';
|
||||||
$lang //= 'default';
|
$lang = 'default' unless( $lang && C4::Context->preference('TranslateNotices') );
|
||||||
|
|
||||||
|
|
||||||
if ( C4::Context->preference('IndependentBranches')
|
if ( C4::Context->preference('IndependentBranches')
|
||||||
and $branchcode
|
and $branchcode
|
||||||
|
|
Loading…
Reference in a new issue