From 2b4c62138fc4e11c81d23230748317360657e354 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Fri, 1 Jun 2018 11:59:35 +0100 Subject: [PATCH] Bug 20600: (follow-up) Do not use $_ in loop Signed-off-by: Owen Leonard --- Koha/REST/V1/Illrequests.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/REST/V1/Illrequests.pm b/Koha/REST/V1/Illrequests.pm index 2a41987fb2..92d0bf6722 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -66,11 +66,11 @@ sub list { # Create new "formatted" columns for each date column # that needs formatting - foreach(@req_list) { + foreach my $req(@req_list) { foreach my $field(@format_dates) { - if (defined $_->{$field}) { - $_->{$field . "_formatted"} = format_sqldatetime( - $_->{$field}, + if (defined $req->{$field}) { + $req->{$field . "_formatted"} = format_sqldatetime( + $req->{$field}, undef, undef, 1 -- 2.11.0