projects
/
koha_fer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a mock-db table and tested a line
[koha_fer]
/
C4
/
Letters.pm
diff --git
a/C4/Letters.pm
b/C4/Letters.pm
index
b366fbc
..
b17cb08
100644
(file)
--- a/
C4/Letters.pm
+++ b/
C4/Letters.pm
@@
-120,7
+120,9
@@
my %letter;
sub getletter {
my ( $module, $code, $branchcode ) = @_;
sub getletter {
my ( $module, $code, $branchcode ) = @_;
- if (C4::Context->preference('IndependantBranches') && $branchcode){
+ if ( C4::Context->preference('IndependantBranches')
+ and $branchcode
+ and C4::Context->userenv ) {
$branchcode = C4::Context->userenv->{'branch'};
}
$branchcode = C4::Context->userenv->{'branch'};
}