Lines 203-213
sub getletter {
Link Here
|
203 |
$lang = 'default' unless( $lang && C4::Context->preference('TranslateNotices') ); |
203 |
$lang = 'default' unless( $lang && C4::Context->preference('TranslateNotices') ); |
204 |
|
204 |
|
205 |
|
205 |
|
206 |
if ( C4::Context->preference('IndependentBranches') |
206 |
my $only_my_library = C4::Context->only_my_library; |
207 |
and $branchcode |
207 |
if ( $only_my_library and $branchcode ) { |
208 |
and C4::Context->userenv ) { |
208 |
$branchcode = C4::Context::mybranch(); |
209 |
|
|
|
210 |
$branchcode = C4::Context->userenv->{'branch'}; |
211 |
} |
209 |
} |
212 |
$branchcode //= ''; |
210 |
$branchcode //= ''; |
213 |
|
211 |
|
214 |
- |
|
|