Bugzilla – Attachment 8408 Details for
Bug 7779
tools/letter.pl: scope vars for plack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
09.diff (text/plain), 1.49 KB, created by
Dobrica Pavlinusic
on 2012-03-21 13:27:08 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-03-21 13:27:08 UTC
Size:
1.49 KB
patch
obsolete
>commit 5233fe57a6f66dea1d8a55d06183a11a035ef872 >Author: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Wed Mar 21 14:26:02 2012 +0100 > > tools/letter.pl: scope vars for plack > >diff --git a/tools/letter.pl b/tools/letter.pl >index eb9d6a6..44f21ab 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -85,17 +85,17 @@ sub protected_letters { > return { map { $_->[0] => 1 } @{$codes} }; > } > >-my $input = new CGI; >+our $input = new CGI; > my $searchfield = $input->param('searchfield'); > my $script_name = '/cgi-bin/koha/tools/letter.pl'; >-my $branchcode = $input->param('branchcode'); >+our $branchcode = $input->param('branchcode'); > my $code = $input->param('code'); > my $module = $input->param('module'); > my $content = $input->param('content'); > my $op = $input->param('op') || ''; > my $dbh = C4::Context->dbh; > >-my ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user( >+our ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user( > { > template_name => 'tools/letter.tmpl', > query => $input, >@@ -106,7 +106,7 @@ my ( $template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user( > } > ); > >-my $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'} >+our $my_branch = C4::Context->preference("IndependantBranches") && !$staffflags->{'superlibrarian'} > ? C4::Context->userenv()->{'branch'} > : undef; > # we show only the TMPL_VAR names $op
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7779
:
8408
|
8442
|
8447