Bugzilla – Attachment 72355 Details for
Bug 19933
Move C4::Members::patronflags to the Koha namespace - part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19933: Move instantiation of in deletemem.pl
Bug-19933-Move-instantiation-of-in-deletemempl.patch (text/plain), 1.53 KB, created by
Kyle M Hall (khall)
on 2018-03-02 11:18:35 UTC
(
hide
)
Description:
Bug 19933: Move instantiation of in deletemem.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-03-02 11:18:35 UTC
Size:
1.53 KB
patch
obsolete
>From c4ca98dbb41e2a7ae9e8f6734e26f3f07091984a Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Fri, 2 Mar 2018 06:08:10 -0500 >Subject: [PATCH] Bug 19933: Move instantiation of in deletemem.pl > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > members/deletemem.pl | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/members/deletemem.pl b/members/deletemem.pl >index 7bd8e02..96f6251 100755 >--- a/members/deletemem.pl >+++ b/members/deletemem.pl >@@ -57,6 +57,7 @@ if ( $loggedinuser == $member ) { > } > > my $logged_in_user = Koha::Patrons->find( $loggedinuser ) or die "Not logged in"; >+my $patron = Koha::Patrons->find( $member ); > output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } ); > > # Handle deletion from the Norwegian national patron database, if it is enabled >@@ -76,12 +77,9 @@ if ( C4::Context->preference('NorwegianPatronDBEnable') && C4::Context->preferen > my $issues = GetPendingIssues($member); # FIXME: wasteful call when really, we only want the count > my $countissues = scalar(@$issues); > >-my $patron = Koha::Patrons->find( $member ); > my $charges = $patron->account->non_issues_charges; > my $userenv = C4::Context->userenv; > >- >- > if ($patron->category->category_type eq "S") { > unless(C4::Auth::haspermission($userenv->{'id'},{'staffaccess'=>1})) { > print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE_STAFF"); >-- >2.10.2
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 19933
:
70347
|
70348
|
70349
|
70350
|
71803
|
71804
|
71805
|
71806
|
72004
|
72005
|
72006
|
72007
|
72094
|
72095
|
72350
|
72351
|
72352
|
72353
|
72354
|
72355
|
72356
|
72472
|
72473
|
72474
|
72475
|
72476
|
72477
|
72478