From 9bd16d23b24d734afa97a047ec66884915544663 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 28 Oct 2010 08:09:47 -0400 Subject: [PATCH] bug 5243: avoid crash when saving authority records on certain setups This does not seem to occur on all platforms - C4::Search exports SimpleSearch() by default - but adding the 'C4::Search::' qualifier certainly doesn't hurt things. Patch by Fridolyn Somers Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- C4/AuthoritiesMarc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index b4a0d786a8..d07cca492c 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -901,7 +901,7 @@ sub FindDuplicateAuthority { $_->[1]=~s/$filtervalues/ /g; $query.= " and he,wrdl=\"".$_->[1]."\"" if ($_->[0]=~/[A-z]/); } } - my ($error, $results, $total_hits)=SimpleSearch( $query, 0, 1, [ "authorityserver" ] ); + my ($error, $results, $total_hits) = C4::Search::SimpleSearch( $query, 0, 1, [ "authorityserver" ] ); # there is at least 1 result => return the 1st one if (@$results>0) { my $marcrecord = MARC::File::USMARC::decode($results->[0]); -- 2.20.1