From d7f480023b010f5916532959c47923a75a4503fa 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 2a41987..92d0bf6 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.1.4