From cf88b85c24e3262e1fefb8db4de4360dd3601f02 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 a30173b..0ba39fc 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -893,7 +893,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); } } -- 2.1.4