From 2f625ca4a296392eb2d74724ab83128f5d992369 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 cfc353d2f8..bae951e17f 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -60,11 +60,11 @@ sub list { # Create new "formatted" columns for each date column # that needs formatting - foreach(@requests) { + foreach $req(@requests) { 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