From 73d247653684fa99377c3847ec8b595ff0c09e38 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); } } -- 2.6.1