View | Details | Raw Unified | Return to bug 7001
Collapse All | Expand All

(-)a/tools/letter.pl (-3 / +2 lines)
Lines 95-101 my $content = $input->param('content'); Link Here
95
my $op          = $input->param('op') || '';
95
my $op          = $input->param('op') || '';
96
my $dbh = C4::Context->dbh;
96
my $dbh = C4::Context->dbh;
97
97
98
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
98
my ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user(
99
    {
99
    {
100
        template_name   => 'tools/letter.tmpl',
100
        template_name   => 'tools/letter.tmpl',
101
        query           => $input,
101
        query           => $input,
Lines 106-112 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
106
    }
106
    }
107
);
107
);
108
108
109
my $my_branch = C4::Context->preference("IndependantBranches")
109
my $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'}
110
  ?  C4::Context->userenv()->{'branch'}
110
  ?  C4::Context->userenv()->{'branch'}
111
  : undef;
111
  : undef;
112
# we show only the TMPL_VAR names $op
112
# we show only the TMPL_VAR names $op
113
- 

Return to bug 7001