[Koha-patches] [PATCH] bug 5243: avoid crash when saving authority records on certain setups
Galen Charlton
gmcharlt at gmail.com
Thu Oct 28 14:09:47 CEST 2010
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 <fridolyn.somers at gmail.com>
Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
C4/AuthoritiesMarc.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm
index b4a0d78..d07cca4 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]);
--
1.7.0
More information about the Koha-patches
mailing list