From 889366100f5a5051076d625dab37145d457444a0 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 Signed-off-by: Katrin Fischer --- 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 66ac795006..aeb25b8578 100644 --- a/Koha/REST/V1/Illrequests.pm +++ b/Koha/REST/V1/Illrequests.pm @@ -58,11 +58,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