Bugzilla – Attachment 53056 Details for
Bug 16819
C4::Members::DelMember should use Koha::Holds to delete holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16819: Remove use of map
Bug-16819-Remove-use-of-map.patch (text/plain), 798 bytes, created by
Jonathan Druart
on 2016-07-03 15:00:10 UTC
(
hide
)
Description:
Bug 16819: Remove use of map
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-03 15:00:10 UTC
Size:
798 bytes
patch
obsolete
>From 4c1a2e9727b852063c2822c58d6e567cabba5405 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sun, 3 Jul 2016 15:58:16 +0100 >Subject: [PATCH] Bug 16819: Remove use of map > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Members.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 4ca2f91..f9b3942 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -1663,7 +1663,7 @@ sub DelMember { > return unless $borrowernumber; # borrowernumber is mandatory. > # Delete Patron's holds > my @holds = Koha::Holds->search({ borrowernumber => $borrowernumber }); >- map { $_->delete } @holds; >+ $_->delete for @holds; > > my $query = " > DELETE >-- >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 16819
:
52929
|
52930
|
53030
|
53031
|
53054
|
53055
| 53056