Bug 16819: Remove use of map
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 3 Jul 2016 14:58:16 +0000 (15:58 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 14:49:09 +0000 (14:49 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Members.pm

index 4ca2f91..f9b3942 100644 (file)
@@ -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