Bugzilla – Attachment 52112 Details for
Bug 16667
Unused variable and function call in circulation.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16667: Unused variable and function call in circulation.pl
Bug-16667-Unused-variable-and-function-call-in-cir.patch (text/plain), 1.21 KB, created by
Jonathan Druart
on 2016-06-07 08:23:42 UTC
(
hide
)
Description:
Bug 16667: Unused variable and function call in circulation.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-06-07 08:23:42 UTC
Size:
1.21 KB
patch
obsolete
>From 3157cf40b08f3f4f96b0076ec4ec279274324039 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Sun, 5 Jun 2016 08:46:06 -0300 >Subject: [PATCH] Bug 16667: Unused variable and function call in > circulation.pl > >This patch removes an unused occurence of the $branches variable. Probably a >leftover from a recent rewrite. > >To test: >- Run: > $ git grep '$branches' circ/circulation.pl >=> FAIL: Only on occurence of the variable >- Apply the patch >- Run: > $ git grep '$branches' circ/circulation.pl >=> SUCCESS: The variable has been removed >- Sign off :-D > >Regards > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > circ/circulation.pl | 2 -- > 1 file changed, 2 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index b2bcdd1..b2201cf 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -125,8 +125,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user ( > } > ); > >-my $branches = GetBranches(); >- > my $force_allow_issue = $query->param('forceallow') || 0; > if (!C4::Auth::haspermission( C4::Context->userenv->{id} , { circulate => 'force_checkout' } )) { > $force_allow_issue = 0; >-- >2.8.1
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 16667
:
52062
|
52067
| 52112