X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fdeletemem.pl;h=a813cd68d71fd589f1d15b82c0a5b68a69b8fa51;hb=2dc8a260c59068c6bef94d529f737b2642ee7a29;hp=b1ba709c65c0cef0dc30ca6e5548e393f47cb968;hpb=0287080cdcea7edafd836967c58fe754c88cf1ea;p=koha_gimpoz diff --git a/members/deletemem.pl b/members/deletemem.pl index b1ba709c65..a813cd68d7 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -30,6 +30,7 @@ use C4::Output; use C4::Auth; use C4::Members; use C4::Branch; # GetBranches +use C4::VirtualShelves (); #no import my $input = new CGI; @@ -102,6 +103,7 @@ if ($countissues > 0 or $flags->{'CHARGES'} or $data->{'borrowernumber'}){ email => $bor->{'email'}, branchcode => $bor->{'branchcode'}, branchname => GetBranchName($bor->{'branchcode'}), + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), ); if ($countissues >0) { $template->param(ItemsOnIssues => $countissues); @@ -116,6 +118,7 @@ output_html_with_http_headers $input, $cookie, $template->output; } else { MoveMemberToDeleted($member); + C4::VirtualShelves::HandleDelBorrower($member); DelMember($member); print $input->redirect("/cgi-bin/koha/members/members-home.pl"); }