Bugzilla – Attachment 95388 Details for
Bug 23822
Regression: As of 19.05.04 deletion of patrons with outstanding credits is silently blocked
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23822: Fix deletion of patrons with credit
Bug-23822-Fix-deletion-of-patrons-with-credit.patch (text/plain), 1.47 KB, created by
Katrin Fischer
on 2019-11-13 14:00:05 UTC
(
hide
)
Description:
Bug 23822: Fix deletion of patrons with credit
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-11-13 14:00:05 UTC
Size:
1.47 KB
patch
obsolete
>From fe47c4ccc7ea1c412acd4e2cea1b156927beb60d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 11 Nov 2019 12:35:30 +0100 >Subject: [PATCH] Bug 23822: Fix deletion of patrons with credit > >There are bugs in both master and 19.05, but different. > >Anyway we should have this check to make sure a negative value will have >the same behavior: trigger the confirmation message (instead of a blank >page). > >If we want to reject the deletion of a patron with credit we should >handle it on a separate bug report (behavior change) > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > members/deletemem.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/members/deletemem.pl b/members/deletemem.pl >index b30d28d5f6..5434cdfe53 100755 >--- a/members/deletemem.pl >+++ b/members/deletemem.pl >@@ -104,7 +104,7 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $charges or $is_guarantor ) > $template->param(ItemsOnHold => $countholds); > } > # This is silly written but reflect the same conditions as above >- if ( not $countissues > 0 and not $charges and not $is_guarantor ) { >+ if ( not $countissues > 0 and not $charges > 0 and not $is_guarantor ) { > $template->param( > op => 'delete_confirm', > csrf_token => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID') }), >-- >2.11.0
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 23822
:
95254
|
95327
| 95388