From dc2339247bbe60e4f23f4d3993b2774648284674 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 2 Mar 2018 06:01:38 -0500 Subject: [PATCH] Bug 19933: (follow-up) Remove patronflags - easy ones Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart --- members/deletemem.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/deletemem.pl b/members/deletemem.pl index 95a560c9e2..7bd8e02553 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -57,7 +57,6 @@ 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 @@ -108,7 +107,7 @@ if (C4::Context->preference("IndependentBranches")) { my $op = $input->param('op') || 'delete_confirm'; my $dbh = C4::Context->dbh; my $is_guarantor = $dbh->selectrow_array("SELECT COUNT(*) FROM borrowers WHERE guarantorid=?", undef, $member); -if ( $op eq 'delete_confirm' or $countissues > 0 or $flags->{'CHARGES'} or $is_guarantor or $deletelocal == 0) { +if ( $op eq 'delete_confirm' or $countissues > 0 or $charges or $is_guarantor or $deletelocal == 0) { $template->param( patron => $patron, -- 2.39.5