From 28b4c2bb86abfd01aeda21528de2ca67d370d3b9 Mon Sep 17 00:00:00 2001 From: Martin Stenberg Date: Fri, 23 Oct 2015 15:20:37 +0200 Subject: [PATCH] Bug 14670: fix ControlStructures::ProhibitMutatingListFunctions --- C4/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Record.pm b/C4/Record.pm index aeea6f6..e3edfa6 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -845,7 +845,7 @@ sub marc2cites { if($author =~ /([^,]+),?(.*)/) { my %a; ($a{'surname'} = $1) =~ s/$re_clean//g; - $a{'forenames'} = [map {s/$re_clean//g;$_} split ' ', $2]; + $a{'forenames'} = [map {my $t=$_;$t=~s/$re_clean//g;$t} split ' ', $2]; push(@authors, \%a); } } -- 1.9.1