From 75d2b2805dbb81c0fd037d664132bcf24a987326 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 d072b6382f..ea2da29d13 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